SB65
12-07-2010, 09:19 AM
I have a rewrite rule set up in my .htaccess file to redirect non www addresses to the www address:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
This works fine, but I discovered yesterday that the rewrite fails on my 'test' directory. Specifically mydomain.com/test is not redirected to www.mydomain.com/test. All other subdirectories are redirected fine.
I removed everything except the above statement from my .htaccess file but the problem remains.
This makes no sense to me....Any suggestions?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain.com$
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
This works fine, but I discovered yesterday that the rewrite fails on my 'test' directory. Specifically mydomain.com/test is not redirected to www.mydomain.com/test. All other subdirectories are redirected fine.
I removed everything except the above statement from my .htaccess file but the problem remains.
This makes no sense to me....Any suggestions?