在linux+Nginx+mysql+PHP 新装的服务器下,不支持重写pathinfo功能 。
需要加入这个代码 让Nginx 支持重写功能
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
在linux+Nginx+mysql+PHP 新装的服务器下,不支持重写pathinfo功能 。
需要加入这个代码 让Nginx 支持重写功能
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}