homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Htaccess help needed

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

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)

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

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



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

Thanks andreasfriedrich...

thanks for the reply. :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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