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...
I checked the information, probably because:
return has clearer semantics, "that's it", the result is 301.
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