diff --git a/public/nginx.htaccess b/public/nginx.htaccess index e69de29b..8254399b 100755 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -0,0 +1,6 @@ + location / { // …..省略部分代码 + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?s=/$1 last; + break; + } + } \ No newline at end of file