一個域名配置文件中 不能出現兩個 location /
[ Nginx ]
在Nginx低版本中,是不支持PATHINFO的,但是可以通過在Nginx.conf
中配置轉發規則實現:
location / { // …..省略部分代碼
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
在Nginx低版本中,是不支持PATHINFO的,但是可以通過在Nginx.conf
中配置轉發規則實現:
location / { // …..省略部分代碼
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}