homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Domain Names
Forum Library, Charter, Moderators: buckworks & webwork

Domain Names Forum

Multiple parked domains, redirecting to main domain - .htaccess - mod
use htaccess and mod_redirect to show master domain name

Msg#: 4221638 posted 3:28 pm on Oct 25, 2010 (gmt 0)


I have one master domain www.solosystem.co and two parked domains;

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]



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

Msg#: 4221638 posted 6:44 am on Oct 26, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Domain Names
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved