进行URL重写,将默认访问URL中的index.php?s=通过rewrite隐藏
location /blog/ {
index index.php index.html index.htm;
if (!-e $request_filename){
rewrite ^/blog/(.*)$ /blog/index.php?s=$1 last;
}
}
标签:index,rewrite,URL,htm,子目录,blog,nginx,thinkphp,php From: https://blog.51cto.com/jing/6002494