Welcome to WebmasterWorld Guest from 54.159.190.106

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Htaccess help needed

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

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



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)

WebmasterWorld Senior Member 10+ Year Member



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)

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



Thanks andreasfriedrich...

thanks for the reply. :)

 

Featured Threads

Hot Threads This Week

Hot Threads This Month