Welcome to WebmasterWorld Guest from 54.227.101.214

Forum Moderators: phranque

Message Too Old, No Replies

Best Way To Redirect An Entire Website

Should redirect be site wide or page by page

     

NorrisEnterprises

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

5+ Year Member



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

coopster

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

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



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]

BananaFish

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

5+ Year Member



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...]

NorrisEnterprises

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

5+ Year Member



Thank you both for the suggestions.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month