进行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;
}
}
进行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;
}
}