-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
76 lines (66 loc) · 3.42 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FileETag None
AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss
AddType video/ogg ogg ogv
AddType video/mp4 mp4
AddType video/webm webm
AddType image/svg+xml svg svgz
AddType application/vnd.ms-fontobject eot
AddType font/ttf ttf
AddType font/otf otf
AddType font/x-woff woff
AddType text/cache-manifest manifest
AddHandler php5-script .php
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</IfModule>
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
<IfModule mod_expires.c>
Header set cache-control: public
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/cache-manifest "access plus 0 seconds"
ExpiresByType text/html "access"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType font/ttf "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^flickrshow.co.uk [NC,OR]
RewriteCond %{HTTP_HOST} ^www.flickrshow.co.uk [NC,OR]
RewriteCond %{HTTP_HOST} ^flickrshow.net [NC,OR]
RewriteCond %{HTTP_HOST} ^www.flickrshow.net [NC,OR]
RewriteCond %{HTTP_HOST} ^v6.flickrshow.com [NC,OR]
RewriteCond %{HTTP_HOST} ^v7.flickrshow.com [NC,OR]
RewriteCond %{HTTP_HOST} ^api.flickrshow.com [NC,OR]
RewriteCond %{HTTP_HOST} ^flickrshow.com [NC]
RewriteRule ^(.*)$ http://www.flickrshow.com/$1 [R=301,L]
RewriteRule ^v6/(.*)$ http://www.flickrshow.com/static/scripts/flickrshow-7.1.min.js [R=301,L]
RewriteRule ^v7/(.*)$ http://www.flickrshow.com/static/scripts/flickrshow-7.1.min.js [R=301,L]
</IfModule>