日期:2014-05-17  浏览次数:20450 次

各位高手,帮忙想一下,我要用nginx伪静态,http://127.0.0.1/phurl/vP3g8 http://127.0.0.1/phurl?aid=
各位高手,帮忙想一下,我要用nginx伪静态,http://127.0.0.1/phurl/vP3g8  http://127.0.0.1/phurl?aid=vP3g8 怎么写?

------解决方案--------------------
nginx下的 你试试行不 不行当没说
rewrite ^/phurl/([0-9a-z]+)$ /phurl?aid=$1 last;
------解决方案--------------------
location /phpurl/ {
rewrite ^/phurl/(.*)$ /phurl?aid=$1 last;
}