ThinkPHP配置
‘URL_MODEL’ => ‘2’, //URL模式
nginx配置
location / {
if (!-e request_filename) {
rewrite ^(.*) /index.php?s=$1 last;
break;
}
}
‘URL_MODEL’ => ‘2’, //URL模式
location / {
if (!-e request_filename) {
rewrite ^(.*) /index.php?s=$1 last;
break;
}
}