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

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

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

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 © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in