location = / {
index index.php;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
}
}
location ~ ^.*\.php/ {
rewrite ^(.*\.php)(.*)$ /$1?s=$2 last;
}
location ~ ^.*\.php$ {
fastcgi_index index.php;
fastcgi_pass fastcgi;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
tp rewrite 隐藏入库文件
最新推荐文章于 2021-04-09 05:57:12 发布