Forum Moderators: phranque

Message Too Old, No Replies

Proper 301 redirect

301 redirect proper way to implement

         

amities

10:59 pm on Jun 13, 2003 (gmt 0)



I have been browsing the forums, trying to find the adequate and most prudent way to implement a 301 redirect (permament). I have come across a multitude of forms, which I'll list:

Redirect 301 / [newsite.com...]
redirect 301 / [newsite.com...]
RedirectPermanent / [newsite.com...]
redirect permament / [newsite.com...]

Now, I do not know if the .htaccess file is case sensitive or which is the right way to do it, or if there is one way that works better than the others. I am sure that there are more ways to implement a 301 redirect. So, can anyone offer clarity on this subject? Thanks!

jdMorgan

11:04 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



amities,

Welcome to WebmasterWorld [webmasterworld.com]!

In most cases, .htaccess is not case-sensitive, but I prefer to do it the way they say in the book [httpd.apache.org].

All of the variants you have listed are documented in Apache mod_alias.

If you need to do a conditional redirect, check out mod_rewrite.

HTH,
Jim