forked from k0a1a/hotglue2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
htaccess-dist
41 lines (33 loc) · 1.04 KB
/
htaccess-dist
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
# useful for debugging taugh cases
# php_flag display_errors on
# make sure MultiViews is disabled
Options -MultiViews
# disable listing of directories
Options -Indexes
RewriteEngine on
# on some installations it might be necessary to explicitly set the base URL
# if you have your hotglue installation on http://foo.com/bar this would be /bar
# see README for details
# RewriteBase /bar
# this seems to be needed for authentication if php is working in cgi mode
# in that case it is also nessesary to set 'AUTH_METHOD','basic' in config.inc.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# shortcut for json
RewriteRule ^json/?$ json.php [L]
# redirect everything that is not a real file or directory towards index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
# disallow access to a bunch of static files
<Files COPYING>
order deny,allow
deny from all
</Files>
<Files INSTALL>
order deny,allow
deny from all
</Files>
<Files README>
order deny,allow
deny from all
</Files>