-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
51 lines (48 loc) · 2.47 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
ErrorDocument 404 /404.php
RewriteEngine on
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.html\ HTTP
RewriteRule ^([^.]+)\.html$ https://legacy.dimini.dev/$1 [R=301,L]
RewriteRule ^en/testdrive/(.*)$ /en/statistics/testdrive/$1 [R=301,NC,L]
RewriteRule ^ru/testdrive/(.*)$ /ru/statistics/testdrive/$1 [R=301,NC,L]
RewriteRule ^en/hearthstone/crafting-guide/(.*)$ /en/statistics/games/hearthstone/crafting-guide/$1 [R=301,NC,L]
RewriteRule ^ru/hearthstone/crafting-guide/(.*)$ /ru/statistics/games/hearthstone/crafting-guide/$1 [R=301,NC,L]
RewriteRule ^en/statistics/games/hearthstone-cards-rating/(.*)$ /en/statistics/games/hearthstone/crafting-guide/$1 [R=301,NC,L]
RewriteRule ^ru/statistics/games/hearthstone-cards-rating/(.*)$ /ru/statistics/games/hearthstone/crafting-guide/$1 [R=301,NC,L]
RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*) /$1.php [L]
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|svg)$">
Header set Cache-Control "max-age=86400, public"
</filesMatch>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/opentype
# For Older Browsers Which Can't Handle Compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
RewriteCond %{HTTP_HOST} ^dimini\.heliohost\.org$ [OR]
RewriteCond %{HTTP_HOST} ^www\.dimini\.heliohost\.org$
RewriteRule ^(.*)$ "https\:\/\/legacy\.dimini\.dev\/$1" [R=301,L]