先查看是否开启mod_rewrite重写模块
在server中添加以下代码,有无index.php对网站访问无影响
if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
先查看是否开启mod_rewrite重写模块
在server中添加以下代码,有无index.php对网站访问无影响
if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}