vue和thinkphp路由伪静态配置
vue路由伪静态配置:
location / {
try_files $uri $uri/ /index.html;
}
thinkphp 路由伪静态配置
location ~* (runtime|application)/{
return 403;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
vue路由伪静态配置:
location / {
try_files $uri $uri/ /index.html;
}
thinkphp 路由伪静态配置
location ~* (runtime|application)/{
return 403;
}
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}