添加伪静态
This commit is contained in:
parent
37a9566011
commit
7ae8dce5e8
|
@ -8,6 +8,12 @@ server {
|
|||
root /var/www/html/public;
|
||||
index index.php index.html index.htm index.nginx-debian.html;
|
||||
|
||||
location / {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^(.*)$ /index.php?s=$1 last; break;
|
||||
}
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue