So a client of mine has about 150 domain names, all of them he is wanting to redirect to the primary domain name.
I have done something like this for each domain name in the .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain12.com$ [NC]
RewriteRule ^(.*)$ http://www.primarydomain.com/$1 [R=301,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain12.com$ [NC]
RewriteRule ^(.*)$ http://www.primarydomain.com/$1 [R=301,L]
Now this works if you are in the root index (home page). As soon as you go to something like www.domain12.com/about then it just loads the page but doesn't redirect the url. Does anyone know what's causing this?