Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

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)

New User

10+ Year Member

joined:Nov 21, 2005
votes: 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)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 2

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)

Full Member

10+ Year Member

joined:Sept 7, 2005
votes: 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)

New User

10+ Year Member

joined:Nov 21, 2005
votes: 0

Thank you both for the suggestions.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members