View Single Post
  #7 (permalink)  
Old 10-03-2007, 19:33
swexpert swexpert is offline
Premium Member
 
Join Date: Jan 2007
Posts: 209
Default

Try This in htaccess:

RewriteEngine on
rewritecond %{REQUEST_URI} yourdomain.com/
rewriterule (.*) http://yourdomain.com/folder/$1 [l,nc]

However, for the sake of simplicity and to prevent too much load on apache, what has been suggested in the above post is the right method. However, it will not tally later on if you take a look at FAQs and DOCs etc. which will mention the webroot to public_html. IF you're comfortable with that, please go ahead.

But the best thing is, why do you want to get it done in the first place? Logically, it does not make any difference, the whole world's webpages are in webroot at public_html folder.

Regds
IJ
Reply With Quote