redirect tips

Redirect root URL to subdirectory using .htaccess
Published on May 22nd, 2011

To redirect you main URL to a subdirectory, simply use the following code in your .htaccess file. RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com$ RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteRule ^$ store [L]