forked from lansuite/lansuite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
23 lines (21 loc) · 831 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
#RewriteEngine On
#
#RewriteBase /lansuite-svn/
#RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/index.html$ index.php?mod=$1&action=$2&step=$3&$4=$5 [L]
#RewriteRule ^(.*)/(.*)/(.*)/(.*)/index.html$ index.php?mod=$1&action=$2&step=$3&$4 [L]
#RewriteRule ^(.*)/(.*)/(.*)/index.html$ index.php?mod=$1&action=$2&$3 [L]
#RewriteRule ^(.*)/(.*)/index.html$ index.php?mod=$1&$2 [L]
#
#RewriteRule ^(.*)/(design/(.*))$ $2 [L]
#RewriteRule ^(.*)/(ext_inc/(.*))$ $2 [L]
#RewriteRule ^(.*)/(index.php)$ $2 [L]
<ifModule mod_headers.c>
# 60 days cache for images
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=5184000, public"
</FilesMatch>
# 24 hours cache for css and js
<FilesMatch "\.(css|js)$">
Header set Cache-Control "max-age=86400, private, must-revalidate"
</FilesMatch>
</ifModule>