在/usr/local/nginx/conf中加入thinkphp.conf,内容如下:
if ( !-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; }
然后在vhost的配置中加入 include thinkphp.conf; 即可
© 著作权归作者所有
在/usr/local/nginx/conf中加入thinkphp.conf,内容如下:
if ( !-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^(.*)$ /index.php?s=$1 last; break; }
然后在vhost的配置中加入 include thinkphp.conf; 即可
文章评论(0)