简体   繁体   中英

HTTP Status Code for Resource with Multiple URIs

Which HTTP status code should be used when redirecting from a secondary URL to a primary URL?

For example, if the "official" URL of a Contact page is /contact-us and I want to provide /contact as a shorthand convenience, what would be the appropriate status code?

Use one of these:

  • 301 Moved Permanently
  • 302 Found
  • 303 See Other

From your question I think 303 See other is most appropriate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM