-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.htaccess
31 lines (25 loc) · 816 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
RewriteEngine On
RewriteBase /
# 规则1
RewriteCond %{HTTP_HOST} ^(www\.)kms\.net$ [NC]
RewriteCond %{REQUEST_URI} !^/kms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ kms/$1
RewriteRule ^(/)$ kms/index.php [L]
# 规则2
RewriteCond %{HTTP_HOST} ^(www\.)thorui\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/thorui/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ thorui/$1
RewriteRule ^(/)$ thorui/index.php [L]
# 新增规则
RewriteCond %{HTTP_HOST} ^(www\.)?layui\.net$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ layui/$1
RewriteCond %{HTTP_HOST} ^ww\.layui\.net$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ layui/$1