Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Best Way To Redirect An Entire Website Should redirect be site wide or page by page NorrisEnterprises msg:3561973 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.
coopster msg:3562120 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] BananaFish msg:3562490 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 NorrisEnterprises msg:3562835 2:12 pm on Jan 31, 2008 (gmt 0)
Thank you both for the suggestions.