Py学习  »  NGINX

Nginx Regex问题与重写

Kshitij Kumar • 4 年前 • 225 次点击  

我正试图重写如下网址:

https://staging.sciencehook.com/featured/five-things-you-may-have-missed-over-the-weekend-76?amp

致:

https://staging.sciencehook.com/featured/five-things-you-may-have-missed-over-the-weekend-76/amp

这是我的重写片段:

rewrite ^(.*)\?amp$ $uri/amp last;

现在,这段代码实际上没有重写请告诉我这里的问题。

谢谢!

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/49227
 
225 次点击