修改配置文件
This commit is contained in:
parent
88e02ece62
commit
ee66302549
|
@ -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]
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue