-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
72 lines (67 loc) · 4 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
# ----------------------------------------------------------------------
# | Compression |
# ----------------------------------------------------------------------
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/json"
AddOutputFilterByType DEFLATE "application/x-font-woff2"
AddOutputFilterByType DEFLATE "font/woff2"
AddOutputFilterByType DEFLATE "text/css"
AddOutputFilterByType DEFLATE "text/html"
AddOutputFilterByType DEFLATE "text/markdown"
</IfModule>
</IfModule>
# ----------------------------------------------------------------------
# | Expiration module |
# ----------------------------------------------------------------------
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 week"
ExpiresByType application/font-woff2 "access plus 1 week"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/markdown "access plus 0 seconds"
ExpiresByType text/php "access plus 0 seconds"
</IfModule>
# ----------------------------------------------------------------------
# | Rewrite engine |
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
RewriteRule ^index\.(htm|html|php) / [R=301]
RewriteRule ^error-404$ http://mergey.ch/error-404 [R=301,L]
RewriteRule ^contact$ http://mergey.ch/contact [R=301,L]
RewriteRule ^projects$ http://mergey.ch/ [R=301,L]
RewriteRule ^icons=cardamome$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^icons=cardamome$ http://mergey.ch/iconset/cardamome [R=301,L]
RewriteRule ^icons=crystal-guz$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^icons=crystal-guz$ http://mergey.ch/iconset/crystal-guz [R=301,L]
RewriteRule ^icons=stoa$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^icons=stoa$ http://mergey.ch/iconset/stoa [R=301,L]
RewriteRule ^icons=ubaye-04$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^icons=ubaye-04$ http://mergey.ch/iconset/ubaye-04 [R=301,L]
RewriteRule ^wallpapers=esbelliousses$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^wallpapers=esbelliousses$ http://mergey.ch/wallpaper/esbelliousses [R=301,L]
RewriteRule ^wallpapers=scorpix$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^wallpapers=scorpix$ http://mergey.ch/wallpaper/scorpix [R=301,L]
RewriteRule ^website=annapurna$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=annapurna$ http://mergey.ch/website/annapurna [R=301,L]
RewriteRule ^website=captainbooks$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=captainbooks$ http://mergey.ch/website/captainbooks [R=301,L]
RewriteRule ^website=clepsydre$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=clepsydre$ http://mergey.ch/website/clepsydre [R=301,L]
RewriteRule ^website=gizmecano$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=gizmecano$ http://mergey.ch/website/gizmecano [R=301,L]
RewriteRule ^website=jose-sanchez$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=jose-sanchez$ http://mergey.ch/website/jose-sanchez [R=301,L]
RewriteRule ^website=moutons-electriques$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=moutons-electriques$ http://mergey.ch/website/moutons-electriques [R=301,L]
RewriteRule ^website=yellow-submarine$ http://mergey.ch/error-302 [R=302,L]
# RewriteRule ^website=yellow-submarine$ http://mergey.ch/website/ys.moutons-electriques [R=301,L]
</IfModule>