-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
44 lines (37 loc) · 1.05 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
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
ErrorDocument 403 /403
ErrorDocument 500 /500
ErrorDocument 404 /404
RedirectMatch 403 ^/css/.*$
RedirectMatch 403 ^/.htaccess/?$
RedirectMatch 403 ^/js/.*$
Redirect /css/style.css 403.html
Options All -Indexes
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index.html
IndexIgnore *
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</Files>
AuthUserFile /css/htpasswd
AuthType Basic
AuthName “Login Details”
Require valid-user
# Compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript