.htaccess 1.01 KB
Newer Older
1
#
Dries's avatar
 
Dries committed
2
# Apache/PHP/site settings:
3
# $Id$
4 5
#

Dries's avatar
 
Dries committed
6
# Protect files and directories from prying eyes:
7
<Files ~ "(class|conf|CVS|database|Entries|inc|modules|\.module|Repository|Root|script|sh|sql|theme)">
Dries's avatar
 
Dries committed
8 9 10 11
  order deny,allow
  deny from all
</Files>

12 13 14 15 16 17
# Customized server error messages:
ErrorDocument 400 /error.php
ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php
18

Dries's avatar
 
Dries committed
19 20
# Overload PHP variables:
<IfModule mod_php4.c>
21 22 23 24 25
   php_value php_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
Dries's avatar
 
Dries committed
26
   php_value session.auto_start      0
Dries's avatar
Dries committed
27 28 29
   php_value session.cookie_lifetime 2000000
   php_value session.gc_maxlifetime  2000000
   php_value session.cache_expire    200000
30
   php_value session.save_handler    user 
Dries's avatar
 
Dries committed
31
</IfModule>
32 33 34 35 36 37

# Various rewrite rules
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^blog/(.*) /module.php?mod=blog&op=view&name=$1 [R]
</IfModule>