当前位置: 代码迷 >> PHP >> ,帮忙想一下,小弟我要用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=

热度:177   发布时间:2013-07-11 15:38:46.0
各位高手,帮忙想一下,我要用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;
}
  相关解决方案