htaccess permanent redirect 301

03.Aug.2010

When moving your website from one domain to another, or just simply changing URLs and link, it is a good idea to use htaccess permanent redirect 301, as you users won’t be looking at 404 page. This is not the only benefit from htaccess permanent redirect 301, you get bonus from Google as well. If you are using Google Webmasters Tools, you probably know it is good for your SEO to keep those 301 redirection.

If redirecting to a new domain:

1
Redirect 301 /one-page.html http://another-domain.com/one-page.html

If doing permanent redirect 301 within a website:

1
Redirect 301 /one-page http://same-domain.com/?page=one-page