-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
34 lines (32 loc) · 1.01 KB
/
.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
32
33
34
#[1]rewrite - 重写URL
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/h5/
RewriteCond %{REQUEST_URI} !^$/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule "^([^/]*)/?(.*)\.html$" "/web/html/poster.html" [L]
RewriteCond %{REQUEST_URI} !^/h5/
RewriteCond %{REQUEST_URI} !^$/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule "^([^/]*)/?(.*)$" "/web/html/$1.html"
RewriteCond %{REQUEST_URI} !^/h5/
RewriteCond %{REQUEST_URI} ^/$
RewriteRule "^$" "/web/html/poster.html"
RewriteCond %{REQUEST_URI} ^/h5/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule "^h5/([^/]*)/?(.*)$" "/h5/poster.html"
</IfModule>
<IfModule mod_expires.c>
#打开缓存
ExpiresActive On
#纯文本不缓存
ExpiresByType text/plain A0
ExpiresByType text/html A0
<FilesMatch "cloud-config.js$">
ExpiresDefault A0
</FilesMatch>
</IfModule>