How to redirect entire site?

Hi All,

Simple question I hope:

How can I redirect my ENTIRE site, rather than just a single page?

Just search in google for redirect 301

If your server is running Apache and you can edit your .htaccess file, you can set a side-wide redirect in there. Your best bet is to Google ‘htaccess 301 redirect’, and if you get stuck, ask for help in the Apache section of the forums.

Redirecting every page on the old site to the home page on the new site is perfectly possible (just delete everything after the domain name when you’re redirecting), but it’s a really crappy way of doing it. If I hit on a URL on a site that’s moved, I expect to be redirected to the equivalent page on the new site, not the home page. If you do just dump me at the home page and leave me to find my own way to the page I wanted, there’s a good chance that I’ll head over to Google and find another site that shows a bit more consideration for its visitors.

If there is a standard pattern that matches the old URL to the new one, that’s easy to recreate in .htaccess, eg one that matches
olddomain.com/page.php?section=this&page=that to
newdomain.com/this/that (I don’t know how, but if you can’t find a tutorial on the web, I’m sure the good people in the Apache forum will be able to tell you).

If there is no standard pattern like that, you should take the time to put an individual redirect on each page so that people don’t then have to hunt around your new site. You should only redirect them to the home page if there is no equivalent page on the new site. Sending everyone to them home page will hurt both the number of people coming to your site and your search rankings.

They are so many ways to redirect a page or site to another site. Here is an Apache Web server configuration to redirect into another page. Believe it solves your problem.

And now the question, is your webserver called apache? )