Home  >  Q&A  >  body text

The difference between Nginx return rewrite and permanent redirection

In the following article, several permanent redirection methods are given
I would like to ask why there is a difference between GOOD and BETTER in rewrite permanent and return 301
I personally think it may be a regular place Will there be any performance loss?

https://www.nginx.com/resources/wiki/sta...

我想大声告诉你我想大声告诉你2713 days ago791

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 17:20:00

    I checked the information, probably because:

    1. return has clearer semantics, "that's it", the result is 301.

    2. As you said, the performance loss of regular matching; the difference between "BAD" and "GOOD" is also explained at the end of the article

    nginx return vs rewrite

    reply
    0
  • Cancelreply