diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..e69de29 diff --git a/public/nginx.htaccess b/public/nginx.htaccess new file mode 100644 index 0000000..1b06492 --- /dev/null +++ b/public/nginx.htaccess @@ -0,0 +1,8 @@ +location / { +  index index.php index.html; +  if (!-e $request_filename) { +    rewrite ^/index.php(.*)$ /index.php?s=$1 last; #必须在前面 +    rewrite ^(.*)$ /index.php?s=$1 last; +    break; +  } +} \ No newline at end of file