Welcome to WebmasterWorld Guest from 34.229.194.198

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

Htaccess help needed

     
5:22 pm on Oct 10, 2002 (gmt 0)

Moderator from GB 

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

joined:June 15, 2001
posts:7801
votes: 73


I have Three sites each with unique but similar content. I now wish to move all sites onto one domain. I am looking for a way to have siteA.com and siteB.com point to siteC.com

The way I was intending on doing this was to use an ataccess file within the root of siteA and siteB and have them redirect to site c.

I still get some referals to site A and site B from se's so I would like siteA.com/anthing and siteB.com/anything to also map to the homepage of sitec.com

Does this look as if it woudl work?

RedirectMatch permanent ^/(.*)http://www.siteC.com/$1

If anyone is better at htaccess tham me (woulden't be hard) please feel free to submit better code than that.

5:45 pm on Oct 10, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


If you add a space between pattern and replacement it will work:

RedirectMatch permanent ^/(.*) [siteC.com...]

Andreas

5:49 pm on Oct 10, 2002 (gmt 0)

Moderator from GB 

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

joined:June 15, 2001
posts:7801
votes: 73


Thanks andreasfriedrich...

thanks for the reply. :)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members