-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy path.htaccess
More file actions
31 lines (28 loc) · 708 Bytes
/
Copy path.htaccess
File metadata and controls
31 lines (28 loc) · 708 Bytes
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
# Protect sensitive files.
<FilesMatch "\.(inc|po|sh|.*sql|log)$">
Order allow,deny
Deny from All
Satisfy All
</FilesMatch>
# Disable directory listings.
Options -Indexes
# Set the default index.
DirectoryIndex index.php
# These settings are recommended
# Maybe you might have problems
# with other scripts that needs
# register_globals ON
<IfModule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_flag session.use_trans_sid Off
</IfModule>
<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag register_globals Off
php_flag session.use_trans_sid Off
</IfModule>
#Sometimes neccessary to add those
#
#AddType application/x-javascript .js
#AddType text/css .css