• Skip to primary navigation
  • Skip to content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Twitter GitHub
You are here: Home / Dev Tips / 301, 302, 303, and 307 Redirects

Warning! This is a draft, not a finalized post. See full draft disclosure.

301, 302, 303, and 307 Redirects

Last updated on January 25, 2019 by Sal Ferrarello

Status Code Result
301 Moved permanently (in the future go directly to the new URL)
302 Replaced by 303 and 307 (typically behaves like 303)
303 Temporarily go to this new URL with a GET request (regardless of request method)
307 Temporarily go to this new URL with the same method that brought you here (GET, POST, etc.)

Further Reading

Wikipedia 3xx Redirection Status Codes

Share this post:

TwitterFacebookLinkedinEmailReddit

Filed Under: Dev Tips, Draft, Programming Tagged With: redirects, website

Reader Interactions

Comments

  1. Jeremy Pry says

    January 28, 2019 at 5:46 pm

    Related to this, my favorite reference for the various HTTP codes is https://httpstatuses.com.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2019 · Genesis Framework · WordPress · Log in