-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
32 lines (26 loc) · 941 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
32
ErrorDocument 404 /404.php
RewriteEngine On
RewriteRule ^sitemap\.xml$ sitemap.php [L]
RewriteRule ^sitemap$ sitemap.php [L]
RewriteRule ^feed.xml$ atom.xml [L]
RewriteRule ^feed.rss$ atom.xml [L]
RewriteRule ^feed$ atom.xml [L]
RewriteRule ^index.xml$ atom.xml [L]
RewriteRule ^rss.xml$ atom.xml [L]
RewriteRule ^rss$ atom.xml [L]
RewriteRule ^atom$ atom.xml [L]
# Browser caching using cache-control headers.
<ifModule mod_headers.c>
# One year for media and font files.
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# Three months for JavaScript and PDF files.
<filesMatch ".(js|pdf)$">
Header set Cache-Control "max-age=7776000, public"
</filesMatch>
# Two months for CSS files.
<filesMatch ".(css)$">
Header set Cache-Control "max-age=5184000, public"
</filesMatch>
</ifModule>