30 lines
927 B
ApacheConf
30 lines
927 B
ApacheConf
|
|
<IfModule mod_rewrite.c>
|
||
|
|
RewriteEngine On
|
||
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
|
RewriteRule ^chatroom ^/../public/chatroom/ [L]
|
||
|
|
RewriteRule ^cron ^/../public/cron/ [L]
|
||
|
|
RewriteRule ^debug ^/../public/debug/ [L]
|
||
|
|
RewriteRule ^list ^/../public/list/ [L]
|
||
|
|
RewriteRule ^mobile ^/../public/mobile/ [L]
|
||
|
|
RewriteRule ^popout ^/../public/popout/ [L]
|
||
|
|
RewriteRule ^video ^/../public/video/ [L]
|
||
|
|
</IfModule>
|
||
|
|
|
||
|
|
<IfModule mod_headers.c>
|
||
|
|
<FilesMatch "\.(gif|jpg|png|css|swf)$">
|
||
|
|
Header add "Expires" "Mon, 28 Jul 2014 23:30:00 GMT"
|
||
|
|
Header add "Cache-Control" "max-age=31536000"
|
||
|
|
</FilesMatch>
|
||
|
|
</IfModule>
|
||
|
|
|
||
|
|
<IfModule mod_expires.c>
|
||
|
|
ExpiresActive On
|
||
|
|
ExpiresDefault A604800
|
||
|
|
ExpiresByType text/css A604800
|
||
|
|
ExpiresByType image/gif A604800
|
||
|
|
ExpiresByType image/png A604800
|
||
|
|
ExpiresByType image/jpeg A604800
|
||
|
|
ExpiresByType application/x-shockwave-flash A604800
|
||
|
|
</IfModule>
|