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

# Archive feature:
Dries's avatar
 
Dries committed
6 7 8 9 10 11 12 13
<Files archive>
  ForceType application/x-httpd-php
</Files>

# Protect .inc files:
#  .inc files can be read from the web so make sure we keep it 
#  away from the casual prying eyes.  Especially `config.inc'.
<Files *.inc>
Dries's avatar
Dries committed
14
  order deny,allow
Dries's avatar
 
Dries committed
15 16
  deny from all
</Files>
17

Dries's avatar
 
Dries committed
18 19 20 21 22 23
# Protect CVS directories:
<Files *CVS>
  order deny,allow
  deny from all
</Files>

Dries's avatar
 
Dries committed
24 25 26 27 28 29
# Protect theme directories:
<Files *themes>
  order deny,allow
  deny from all
</Files>

30 31 32 33 34 35
# Customized server error messages:
ErrorDocument 400 /error.php
ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php
36

Dries's avatar
 
Dries committed
37 38
# Overload PHP variables:
<IfModule mod_php4.c>
39 40 41 42 43
   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
44
   php_value session.name            DROPID
Dries's avatar
 
Dries committed
45
   php_value session.auto_start      1  
Dries's avatar
Dries committed
46 47 48
   php_value session.cookie_lifetime 2000000
   php_value session.gc_maxlifetime  2000000
   php_value session.cache_expire    200000
Dries's avatar
 
Dries committed
49
</IfModule>
Dries's avatar
Dries committed
50