$uri refers to the file and path of the request, and does not contain things like "?" or "#"
$request_uri refers to the entire string of the request, including the things requested later
For example:
$uri: www.baidu.com/document
$request_uri: www.baidu.com/document?x=1
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the difference between nginx $uri and $request_uri, including the content of request and nginx. I hope it will be helpful to friends who are interested in PHP tutorials.