Forum Moderators: phranque

Message Too Old, No Replies

302 redirect

How to...

         

fashezee

5:03 pm on Feb 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where can I get info in setting up a 302 redirect on a server?

jdMorgan

5:42 pm on Feb 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fashezee,

In addition to on-page meta-refresh and scripted solutions, Apache mod_alias [httpd.apache.org] and mod_rewrite [httpd.apache.org] both have the capability to invoke external redirects. Your purpose will determine which is better; mod_alias is simpler, mod_rewrite much more powerful.

Be careful with 302 redirects. Use them only if the resource you are redirecting will return to its original URL at some time in the not-too-distant future. The implied meaning of a 302 is that the redirect is temporary, and that the client (e.g. search engine) should *not* update the URL in its database. Therefore, 302-Found [w3.org] redirects can sometimes confuse search engine robots and lead to (big) indexing problems. In addition, 302 redirects will not work seamlessly for anything other than GET or Head requests.

Jim