网友 amo 说:
网页是 /a.php?id=1 伪静态成 a/1或者a/1/
现在
rew**te &*uot;^/a/(.+)/?&*uot; /a.php?id=$1 last;
或者
rew**te &*uot;^/a/(.+)(/|)&*uot; /a.php?id=$1 last;
的话 拿到的ID变成 1/
写成
rew**te &*uot;^/a/(.+)/&*uot; /a.php?id=$1 last;
rew**te &*uot;^/a/(.+)&*uot; /a.php?id=$1 last;
上面这样倒是能成 但是得两句 太麻烦了 有没有大佬指导下
网友 **oney 说:
.+改成\d+
网友 amo 说: