-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
45 lines (36 loc) · 1.06 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
# follow sym link
Options -Indexes +FollowSymLinks
# kusaba as directory index
DirectoryIndex kusaba.php
# set utf8
AddDefaultCharset utf-8
# set expiry headers for html
#<IfModule mod_headers.c>
#<Files *.html>
#Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
#Header add Pragma "no-cache"
#Header add Cache-Control "max-age=0; must-revalidate; no-cache"
#Header set Expires "0"
#Header unset Vary
#</Files>
#</IfModule>
# prevent access to spam.txt
<Files spam.txt>
order allow,deny
deny from all
</Files>
# error pages
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
# open rewrite engine
RewriteEngine on
# all pages, which are html, needs a password
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} [^4][^0][^4]\.html$
RewriteRule ^ router.php?action=password [L]
# gz handler has to be disabled for now
#RewriteCond %{REQUEST_FILENAME} (.*)\.(html|css|js)$
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteRule ^ gzhandler.php [L]
# Warning: Contents below this line may be erased, please place all .htaccess rules above this line
## !KU_BANS: