08-28-2011, 09:46 PM
|
|
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
.htaccess
Quote:
Now this is not quite complete yet, since we need to specifically send a 301 status code. Without the status argument "Redirect" will send a temporary redirect status (302). So we simply take the above example and change it to:
Redirect 301 /foo http://foobar.com/foo
OR
Redirect permanent /foo http://foobar.com/foo
And there is also a specific 'RedirectPermanent' directive as well so you could just as easily say:
RedirectPermanent /foo http://foobar.com/foo
|
http://www.gnc-web-creations.com/301-redirect.htm
|
|
|