2000-05-28 09:23:56 +00:00
|
|
|
#
|
2000-06-22 09:14:16 +00:00
|
|
|
# Apache/PHP/site settings:
|
2000-05-28 09:23:56 +00:00
|
|
|
#
|
|
|
|
|
2000-12-16 09:27:52 +00:00
|
|
|
# Protect files and directories from prying eyes:
|
2001-11-24 13:18:58 +00:00
|
|
|
<Files ~ "(\.(conf|inc|module|pl|sh|sql|theme)|Entries|Repositories|Root|scripts|updates)$">
|
2000-12-16 08:39:01 +00:00
|
|
|
order deny,allow
|
|
|
|
deny from all
|
|
|
|
</Files>
|
|
|
|
|
2001-11-24 13:18:58 +00:00
|
|
|
# Deny directory listings:
|
|
|
|
Options -Indexes
|
|
|
|
|
2000-05-28 09:23:56 +00:00
|
|
|
# Customized server error messages:
|
|
|
|
ErrorDocument 400 /error.php
|
|
|
|
ErrorDocument 402 /error.php
|
|
|
|
ErrorDocument 403 /error.php
|
|
|
|
ErrorDocument 404 /error.php
|
|
|
|
ErrorDocument 500 /error.php
|
2000-06-03 09:20:45 +00:00
|
|
|
|
2000-06-22 09:14:16 +00:00
|
|
|
# Overload PHP variables:
|
|
|
|
<IfModule mod_php4.c>
|
2002-09-27 16:50:42 +00:00
|
|
|
php_value register_globals 1
|
2000-09-26 07:34:33 +00:00
|
|
|
php_value track_vars 1
|
2002-12-07 21:21:35 +00:00
|
|
|
php_value short_open_tag 1
|
2002-09-27 16:50:42 +00:00
|
|
|
php_value magic_quotes_gpc 0
|
2000-09-26 07:34:33 +00:00
|
|
|
php_value magic_quotes_runtime 0
|
|
|
|
php_value magic_quotes_sybase 0
|
2003-02-12 21:37:55 +00:00
|
|
|
php_value arg_separator.output "&"
|
2001-12-09 14:23:06 +00:00
|
|
|
php_value session.cache_expire 200000
|
|
|
|
php_value session.cookie_lifetime 2000000
|
2000-12-30 11:58:14 +00:00
|
|
|
php_value session.auto_start 0
|
2001-09-18 20:36:28 +00:00
|
|
|
php_value session.save_handler user
|
2002-12-08 08:19:29 +00:00
|
|
|
php_value session.cache_limiter none
|
2002-02-17 13:04:50 +00:00
|
|
|
php_value allow_call_time_pass_reference Off
|
2000-06-22 09:14:16 +00:00
|
|
|
</IfModule>
|
2001-07-14 14:28:32 +00:00
|
|
|
|
|
|
|
# Various rewrite rules
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
2003-03-09 17:04:14 +00:00
|
|
|
# Rewrite old-style URLS of the form 'node.php?id=x':
|
|
|
|
RewriteCond %{QUERY_STRING} ^id=([^&]+)$
|
|
|
|
RewriteRule node.php index.php?q=node/view/%1
|
|
|
|
# Rewrite old-style URLs of the form 'module.php?mod=x':
|
|
|
|
RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
|
|
|
|
RewriteRule module.php index.php?q=%1
|
|
|
|
# Rewrite URLs of the form 'index.php?q=x':
|
2003-02-14 19:52:45 +00:00
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
2003-02-20 08:02:57 +00:00
|
|
|
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
|
2001-11-24 13:18:58 +00:00
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
# $Id$
|