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 (.*) http://www.example.com/$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
http://rnydm.us/pruC5b

Initial Description
I found this useful. Works as expected.

Initial Title
.htaccess Redirect ROOT to subdirectory

Initial Tags
redirect, htaccess, apache

Initial Language
Apache