-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess_
30 lines (25 loc) · 1.12 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
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge"
# mod_headers can't match by content-type, but we don't want to send this header on *everything*...
<FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp3|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|xpi|safariextz|vcf)$" >
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
# We need to inform proxies that content changes based on UA
Header append Vary User-Agent
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
</IfModule>
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
AddType application/x-web-app-manifest+json .webapp
AddType text/cache-manifest .appcache
ErrorDocument 404 /404/index.php
RewriteEngine on
RewriteRule ^manifest\.webapp$ /manifest.webapp.php
RewriteRule ^manifest\.appcache$ /manifest.php
ExpiresByType text/cache-manifest "access plus 0 seconds"