How can I use .htaccess rewrite to redirect root URL to subdirectory?

You can use a rewrite rule that uses ^$ to represent the root and rewrite that to your /store directory, like this:

RewriteEngine On
RewriteRule ^$ /store [L]

Leave a Comment