Welcome to WebmasterWorld Guest from 23.20.223.88

Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Multiple parked domains, redirecting to main domain - .htaccess - mod

use htaccess and mod_redirect to show master domain name

     
3:28 pm on Oct 25, 2010 (gmt 0)



Hi,

I have one master domain www.solosystem.co and two parked domains;
solo-system.co.uk
solosystem.co.uk

I would like all users who go to the parked domain to be redirected to the master domain. I have managed to get this working for solo-system.co.uk but not for the other domain (solosystem.co.uk). What am I doing wrong?
PS I found the original code on this forum and modified it. Perhaps I have modified incorrectly?


RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?solo-system\.co.uk
RewriteRule (.*) http://www.solosystem.co/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?solosystem.co.uk
RewriteRule (.*) http://www.solosystem.co/$1 [R=301,L]
6:44 am on Oct 26, 2010 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], lukeharris!

what response do you get for a HTTP request?
did you check your whois and DNS configuration?
have you tried to ping that domain?

as far as your rewrite code, you should escape all the literal periods in the patterns with backslashes.

added: when i tested the response for your "parked" domains they both 302 redirect to your canonical domain.
this doesn't seem possible if you are still using that code.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month