Friday, October 1, 2010

Root directory as subdirectory

One way to point your root directory to a subdirectory, you need these lines on your .htaccess file on the root directory:


Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond $1 !^httpdocs/
RewriteRule ^(.*)$ /httpdocs/$1 [L]

No comments:

Post a Comment