-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.htaccess
88 lines (70 loc) · 2.49 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
77
78
79
80
81
82
83
84
85
86
87
88
RewriteEngine On
RewriteCond %{HTTP_HOST} davesmapper\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://davesmapper.com/$1 [R,L]
Options +FollowSymlinks
Options -Indexes
RewriteEngine on
RewriteBase /
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{HTTP_HOST} ^www\.davesmapper\.com [NC]
#RewriteRule ^(.*)$ https://davesmapper.com/$1 [R=301,QSA]
RewriteCond %{QUERY_STRING} fb_xd_fragment=
RewriteRule (.*) $1? [R=301]
Redirect 301 /blog https://blog.davesmapper.com
RewriteRule ^beta/(.*) /$1 [R=301,QSA]
RewriteRule ^v2/(.*) /$1 [R=301,QSA]
RewriteRule ^about/? /help [R=301,QSA]
RewriteRule ^key/?$ /help#what [R=301,QSA]
RewriteRule ^contribute/?$ /submit [R=301,QSA]
RewriteRule ^sw.js$ /assets/js/service-worker.js [QSA]
RewriteRule ^submit/?$ /contribute.php [QSA]
RewriteRule ^help/?$ /help.php [QSA]
RewriteRule ^ibd/?$ /ibd.php [QSA]
RewriteRule ^admin/?$ /admin/index.php [QSA,L]
RewriteRule ^supporters/?$ /supporters-all.php [QSA]
RewriteRule ^supporters/([^/.]+)/?$ /profile.php?artist=$1 [QSA]
RewriteRule ^export/([0-9A-za-z\/\+=]+)/?$ /fullmap.php?mapData=$1&exportType=36 [QSA]
RewriteRule ^(apple-)?touch-icon(.*).png$ assets/logo-optimized.png [L]
RewriteRule ^con/?$ /conv/index.php [QSA]
RewriteRule ^[a-z\-]+/?$ / [QSA]
RedirectMatch 404 /\.git
<Files .htaccess>
order allow,deny
deny from all
</Files>
AddType text/cache-manifest .appcache
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
<filesMatch "sw\.js$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/x-icon A31104000
ExpiresByType text/cache-manifest A10
ExpiresByType text/html A10
ExpiresByType text/javascript A10
ExpiresByType application/javascript A10
ExpiresByType text/css A10
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>