diff --git a/public/.htaccess b/public/.htaccess index ae818da..e69de29 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,7 +0,0 @@ -Options +FollowSymlinks -Multiviews -RewriteEngine On - -RewriteCond %{REQUEST_FILENAME} !-d -RewriteCond %{REQUEST_FILENAME} !-f -#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] -RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] \ No newline at end of file diff --git a/public/nginx.htaccess b/public/nginx.htaccess index 7759001..1b06492 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,6 +1,8 @@ -location ~ /(front|oauth|agreement|order) { - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?s=/$1 last; - break; - } +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