修改配置文件

This commit is contained in:
陈俊宏 2024-07-02 16:11:18 +08:00
parent 88e02ece62
commit ee66302549
2 changed files with 7 additions and 12 deletions

View File

@ -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]

View File

@ -1,6 +1,8 @@
location ~ /(front|oauth|agreement|order) { location / {
if (!-e $request_filename) {   index index.php index.html;
rewrite ^(.*)$ /index.php?s=/$1 last;   if (!-e $request_filename) {
break;     rewrite ^/index.php(.*)$ /index.php?s=$1 last; #必须在前面
}     rewrite ^(.*)$ /index.php?s=$1 last;
    break;
  }
} }