is like this because the website needs to do some relatively simple but not so simple 301redirects
now the confusion is as follows
for example www.baidu.com/zt/1.html
there is a built-in variable $request_uri that can directly get / zt/1.html
but I want to get the file name part of 1.html
and then I want to ask if there is a built-in variable that can directly get the url.
or is there any way to intercept efficiently?
or must regular be used? Rewrite 301I have already written it, but I read on the Internet that it is not as efficient as return 301xxx.
, so I came to ask for help