drupal/.htaccess

42 lines
1.0 KiB
ApacheConf

#
# Apache/PHP/site settings:
#
# Protect files and directories from prying eyes:
<Files ~ "(\.(conf|inc|module|pl|sh|sql|theme)|Entries|Repositories|Root|scripts|updates)$">
order deny,allow
deny from all
</Files>
# Deny directory listings:
Options -Indexes
# Customized server error messages:
ErrorDocument 400 /error.php
ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php
# Overload PHP variables:
<IfModule mod_php4.c>
php_value register_globals 1
php_value track_vars 1
php_value magic_quotes_gpc 1
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value session.cache_expire 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value allow_call_time_pass_reference Off
</IfModule>
# Various rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^blog/(.*) /module.php?mod=blog\&name=$1 [R]
</IfModule>
# $Id$