vhost配置
include thinkphp.conf;
include enable-php-pathinfo.conf;
thinkphp.conf
location / {
if (!-e $request_filename) {
#rewrite ^(.*)$ /index.php?s=/$1 last;
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
vhost配置
include thinkphp.conf;
include enable-php-pathinfo.conf;
thinkphp.conf
location / {
if (!-e $request_filename) {
#rewrite ^(.*)$ /index.php?s=/$1 last;
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}