What's happening:
domain.com/abc/index.php/xyz
gets redirected to www.domain.com/abc/index.php/xyz
I'd like:
domain.com/abc/index.php/xyz
gets redirected to www.domain.com/abc/xyz
In the document root directory of a Magento installation, I have the following to redirect domain.com/...
to www.domain.com/...
, and index.php
is never there.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L]
However, there's a sub-directory that contains static pages at root/abc
. This directory has its own .htaccess
file, and I've put the same rewrite condition and rule as above. It also have the following. I'm not sure what the first two conditions are doing. The RewriteRule
seems like it should remove the index.php.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /corps/index.php/$1 [L]
Any ideas?