-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
54 lines (32 loc) · 1.55 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
AuthType basic
AuthName "Ledendatabase Collegium Musicum"
AuthUserFile /etc/apache2/ledendatabase.htpasswd
RewriteEngine On
RewriteRule ^query/(.*)$ exec-query.php?query=$1 [QSA]
RewriteRule ^login$ login.php
RewriteRule ^logout$ login.php
RewriteRule ^bewerken$ edit-people.php
RewriteRule ^bewerken/json/(.*)$ edit-people.php?json=$1 [QSA]
RewriteRule ^css/humanity.css$ css/humanity/jquery-ui-1.8.12.custom.css
RewriteRule ^js/jquery.js$ js/jquery-1.5.1.min.js
RewriteRule ^js/jquery-ui.js$ js/jquery-ui-1.8.12.custom.min.js
RewriteRule ^js/admina.js$ cat.php [L]
RewriteRule ^css/admina.css$ cat.php [L]
RewriteRule ^js/bewerken.js$ cat.php [L]
RewriteRule ^favicon.ico$ img/favicon.ico
RewriteRule ^aanmelden$ http://www.collegiummusicum.nl/w/lid-worden/ [R=301]
php_value session.gc_maxlifetime 86400
php_value session.cookie_lifetime 86400
# Deny include files
RewriteRule ^inc/(.*)$ index.php [F]
RewriteRule ^create_db.sh$ index.php [F]
# Error handlers
ErrorDocument 401 /error/auth.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/notfound.html
ErrorDocument 500 /error/internal.html
# Test errors
RewriteRule ^test-error/401$ login.php [L]
RewriteRule ^test-error/403$ / [F,L]
RewriteRule ^test-error/404$ - [L]
RewriteRule ^test-error/500$ error/exception.php