1. 程式人生 > >nginx thinkphp 配置pathinfo

nginx thinkphp 配置pathinfo

pat 重點 try_files filename ast nbsp .html spa color

location / {
root 項目名稱;
index index.html index.php;
try_files $uri $uri/ =404;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; #重點
}

nginx thinkphp 配置pathinfo