Redirect additional domains to the single in use-domain using Apache mod_rewrite in .htaccess
- by boobyWomack
RewriteEngine On
RewriteCond %{HTTP_HOST} ^someparkeddomain.com
RewriteRule ^(.*)$ hxtp://www.thedomainUsed.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.someparkeddomain.com
RewriteRule ^(.*)$ hxtp://www.thedomainUsed.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^anotherparkeddomain.co.uk
RewriteRule ^(.*)$ hxtp://www.thedomainUsed.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.anotherparkeddomain.co.uk
RewriteRule ^(.*)$ hxtp://www.thedomainUsed.co.uk/$1 [R=301,L]
is what I have but doesnt seem to do anything :/ (hxtp because I am new user not spammer!)
redirect is working though as I use it for something else.