homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

HTTP Status Code Definitions
404, 301 and all the rest

Msg#: 473 posted 9:42 pm on Oct 21, 2003 (gmt 0)

What is the difference between a 301 redirect and a 307 redirect? Don't know any other code except the good ol' '404 File Not Found'?

This page lists all the codes your web server could possibly spit out and what they mean.


Another good bookmark to keep handy is the Mod_rewrite guide from Apache:



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 473 posted 10:22 pm on Oct 21, 2003 (gmt 0)


301 means Moved Permanently, not coming back, I've had it with this URL, so long, bye-bye, hasta la vista, via con Dios, Tsai-chien, ciao.

302-Found means, "The URL you have dialed has been temporarily forwarded" and the implication is that the page will return to the old URL at some reasonable time in the future. For this reason, clients should not update their record of the site's URL. So, you never want to use this to update a page's URL in a search engine, because it should not work... Note that I didn't say "definitely won't work."

307 is basically the same thing as a 302, except that 307 is an HTTP/1.1-only status, so you have to return it conditionally, based on whether the request was made using HTTP/1.1 or HTTP/1.0.

307 was created to 'disambiguate' the various response interpretations of 302-Found, along with 303, as described in the RFC2616 document you cited.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved