Return to Snippet

Revision: 51800
at October 5, 2011 00:23 by RainyDayMedia

Initial Code
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule (.*)$1 [R=301,L]
RewriteRule ^$ store [L]

#If you want an external redirect, set the R flag there as well
#RewriteRule ^$ /store [L,R=301]

Initial URL

Initial Description
I found this useful. Works as expected.

Initial Title
.htaccess Redirect ROOT to subdirectory

Initial Tags
redirect, htaccess, apache

Initial Language