實例:thinkphp的pathinfo解決方案
設(shè)置URL_MODEL=2
location / {
? ? if (!-e $request_filename){
? ? ? ? rewrite ^/(.*)$ /index.php?s=/$1 last;
? ? }
}
實例:thinkphp的pathinfo解決方案
設(shè)置URL_MODEL=2
location / {
? ? if (!-e $request_filename){
? ? ? ? rewrite ^/(.*)$ /index.php?s=/$1 last;
? ? }
}