-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
44 lines (41 loc) · 1.66 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
DirectoryIndex /html/pages/intro.html
ErrorDocument 400 /html/errorpages/400.html
ErrorDocument 401 /html/errorpages/401.html
ErrorDocument 403 /html/errorpages/403.html
ErrorDocument 404 /html/errorpages/404.html
ErrorDocument 405 /html/errorpages/405.html
ErrorDocument 408 /html/errorpages/408.html
ErrorDocument 414 /html/errorpages/414.html
ErrorDocument 500 /html/errorpages/500.html
ErrorDocument 502 /html/errorpages/502.html
ErrorDocument 503 /html/errorpages/503.html
ErrorDocument 504 /html/errorpages/504.html
Options +Includes
Options -Indexes
AddType text/html .html .txt .css
AddOutputFilter INCLUDES .html .txt .css
Header set X-XSS-Protection "1; mode=block"
Header set X-Content-Type-Options nosniff
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-FRAME-OPTIONS "sameorigin"
Header set Content-Security-Policy "frame-ancestors 'self';"
Header set X-Robots-Tag "all"
RewriteEngine On
RewriteRule .* - [E=YEAR:%{TIME_YEAR}]
RewriteRule ^intro$ /html/pages/intro.html [L]
RewriteRule ^rants$ /html/pages/rants.html [L]
RewriteRule ^sitelists$ /html/pages/sitelists.html [L]
RewriteRule ^links$ /html/pages/links.html [L]
RewriteRule ^about$ /html/pages/about.html [L]
RewriteRule ^contact$ /html/pages/contact.html [L]
RewriteRule ^sitemap$ /html/pages/sitemap.html [L]
RewriteRule ^robots\.txt$ /misc/robots.txt [L]
RewriteRule ^humans\.txt$ /misc/humans.txt [L]
RewriteRule ^ads\.txt$ /misc/ads.txt [L]
RewriteRule ^security\.txt$ /misc/security.txt [L]
RewriteRule ^favicon\.ico$ /img/favicon.ico [L]
RewriteRule ^sitemap\.xml$ /xml/sitemap.xml [L]
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>