forked from davmillar/DavesMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
56 lines (46 loc) · 1.56 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
Options +FollowSymlinks
Options -Indexes
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.davesmapper\.com [NC]
RewriteRule ^(.*)$ http://davesmapper.com/$1 [L,R=301]
RewriteCond %{QUERY_STRING} fb_xd_fragment=
RewriteRule (.*) $1? [R=301]
RewriteRule ^beta/(.*) /$1 [L,R=301]
RewriteRule ^v2/(.*) /$1 [L,R=301]
RewriteRule ^about/? /help [L,R=301]
RewriteRule ^key/?$ /help#what [L,R=301]
RewriteRule ^contribute/?$ /submit [L,R=301]
RewriteRule ^submit/?$ /contribute.php [QSA,L]
RewriteRule ^help/?$ /help.php [QSA,L]
RewriteRule ^ibd/?$ /ibd.php [QSA,L]
RewriteRule ^supporters/?$ /supporters.php [QSA,L]
RewriteRule ^supporters/([^/.]+)/?$ /profile.php?artist=$1 [QSA,L]
RewriteRule ^con/?$ /conv/index.php [QSA,L]
<Files .htaccess>
order allow,deny
deny from all
</Files>
AddType text/cache-manifest .appcache
<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>