Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道这个重写规则是否有问题:
rewrite ^/$lang/(.*)$ /$1?lang=$lang last;
其实我有这样的网址:
http://example.com/page1.php?lang=en http://example.com/page2.php?lang=en
我想要这样的网址:
http://example.com/en/page1.php http://example.com/en/page2.php