【发布时间】:2016-07-22 00:47:48
【问题描述】:
我的原始网址如下:
http://example.com/lab/file.php?id=4&idl=42
我想美化它,使其也可以通过如下网址访问:
http://example.com/l/not/important/url/part/?id=4&idl=42
我尝试了以下代码,但它不起作用。
rewrite /l/.*/([^/]+)/?$ /lab/file.php$1 last;
如何解决?
【问题讨论】:
标签: regex nginx url-rewriting