So I've got the main htaccess file implemented, and all of the rewrites work fine except for the following. I've actually used mod_rewrite a lot and am pretty familiar with the syntax and how it works, so this has me stumped.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^\/?(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
As far as I can tell this should redirect http://mysite.com to http://www.mysite.com but it just doesn't. But as I said all the other rewrites in the htaccess file work fine. Any ideas? Thanks!






Linear Mode




