The difference between Nginx return rewrite and permanent redirection
我想大声告诉你
我想大声告诉你 2017-05-16 17:18:00
0
1
788

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...

我想大声告诉你
我想大声告诉你

reply all(1)
仅有的幸福

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!