I'm using a very standard set of Rewrite rules for redirecting to the www domain. It works on one of my servers but not on the other.
I cant for the life of me figure out the problem because the other rewrite rules work except this one.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,NC]
Is there some apache config setting that I need to change, or some conflicting rewrite rule?