Redirect additional domains to the single in use-domain using Apache mod_rewrite in .htaccess

Posted by boobyWomack on Stack Overflow See other posts from Stack Overflow or by boobyWomack
Published on 2010-06-02T15:14:14Z Indexed on 2010/06/02 15:24 UTC
Read the original article Hit count: 154

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.

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite