Forum Moderators: phranque
When we went live I used the following in htaccess to ensure anyone coming in at the root would be sent to the sub-dir but we've been noticing some weird behavior and now I'm thinking I missed something or should have executed this differently.
RewriteEngine on
RewriteCond %{HTTP_HOST} thewebsite\.com [NC]
RewriteCond %{REQUEST_URI}!/shop
RewriteCond %{REQUEST_URI}!^/(manager/.*Śmanager)$
RewriteRule (.*) /shop/$1 [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} example\.com [NC]
RewriteCond %{REQUEST_URI} !/shop
RewriteCond %{REQUEST_URI} !^/(manager/.*Śmanager)$
RewriteRule (.*) http://example.com/shop/$1 [R=301,L]