-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
49 lines (33 loc) · 1.37 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
#Options +FollowSymLinks
Options -Indexes
ErrorDocument 404 /404.html
# Set the default handler.
DirectoryIndex index.html index.htm index.php
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^/(..)/store(.*)$ https://holusion.com/$1/store$2 [R,L]
# rewrite dev.holusion.com to holusion.com/dev
RewriteCond %{HTTP_HOST} ^dev.holusion.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.dev.holusion.com$
RewriteRule /(.*)$ https://holusion.com/dev/$1 [R=301,L]
#for some reason those requests normally answer 200 OK ...
RedirectMatch 403 ^/~.*
# redirects for really old pages that will not go away
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 day"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/svg+xml "access plus 1 week"
AddType image/x-icon .ico
ExpiresByType image/ico "access plus 1 week"
ExpiresByType image/icon "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType text/html "access plus 1 day"
ExpiresByType application/x-font-woff "access plus 1 year"
</IfModule>