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 / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

Best Way To Redirect An Entire Website
Should redirect be site wide or page by page

 2:43 pm on Jan 30, 2008 (gmt 0)

I didn't find this asked anyplace else, so I'm sorry if it has been.

We have 2 websites example1.com and example2.com. We want to redirect example2.com to example1.com.

Now when you go to example2.com you still get the homepage, all of the links on the page however, go to example1.com.

Would it be better to do a site redirect so the homepage of example2.com goes to example1.com, or is doing a page by page redirect just as good.

Thank You



 5:28 pm on Jan 30, 2008 (gmt 0)

Actually there are quite a few threads at WebmasterWorld that describe what you intend to do. The question is often asked in the Apache forum "how to do so from a technical/programmatic standpoint" and more often than not you will get a couple questions as to why you want to? Are you concerned about existing page content and rank? etc.

Here is one fairly recent thread that may get you started
Old domain to new with 301 [webmasterworld.com]


 2:07 am on Jan 31, 2008 (gmt 0)

The easiest thing to do is to redirect everything to example2.com with the following apache directive (which can be put in your .htaccess file):

RedirectMatch 301 ^/?(.*) [example2.com...]


 2:12 pm on Jan 31, 2008 (gmt 0)

Thank you both for the suggestions.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
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