-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
76 lines (62 loc) · 2.46 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
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|json|txt)$">
Order Allow,Deny
Deny from all
</FilesMatch>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# This allows you to redirect index.html to a specific subfolder
Redirect /MW https://tegelizr.nl/tegeltje/maurits-westerbeek-gebruikt-tegelizrnl-voor-plaatjes-bij-zijn-stukjes
Redirect /mw https://tegelizr.nl/tegeltje/maurits-westerbeek-gebruikt-tegelizrnl-voor-plaatjes-bij-zijn-stukjes
Redirect /tegeltje/mirjam-olieman-je-bent-een-lelijke-slik-heks https://tegelizr.nl/tegeltje/sneuneus
Redirect /tegeltje/mirjam-olieman-ik-heb-jouw-keihard-in-je-bek-geneukt-en-dat-was-bijna-7x-in-de-weekekt https://tegelizr.nl/tegeltje/sneuneus
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.png) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.css) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.eot)$ $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.svg)$ $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.ttf)$ $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.woff)$ $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.html)$ $1 [L]
RewriteRule . index.php [L]
<FilesMatch "\.(ttf|otf|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
<IfModule mod_headers.c>
# No ETags, No Pragma
Header unset Last-Modified
Header unset Pragma
Header unset ETag
# Make sure proxies deliver correct content
Header append Vary User-Agent env=!dont-vary
# Ensure proxies deliver compressed content correctly
Header append Vary Accept-Encoding
Header unset Last-Modified
Header set Expires "Fri, 04 Nov 2021 21:59:49 GMT"
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/svg+xml "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType font/woff "access 1 year"
ExpiresByType font/woff2 "access 1 year"
ExpiresByType font/ttf "access 1 year"
ExpiresByType font/eot "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##