Web Hosting Talk







View Full Version : .htaccess


vels
07-11-2001, 05:42 PM
Hi

Why can I not use this in a .htacces file?
php_value_include_path /home/sites/home/web/horde/phplib
php_value_auto_prepend_file /home/sites/home/web/horde/phplib/prepend.php3

When I try I got Internal Server Error :(

ffeingol
07-11-2001, 06:04 PM
Search is your friend :D. This was just answered a few day ago here (http://www.webhostingtalk.com/showthread.php?threadid=14307&highlight=htaccess).

Frank

vels
07-11-2001, 06:18 PM
I have edit access.conf

AllowOverride All

and restarte httpf :( but it still now work :(

vels
07-11-2001, 06:30 PM
I use a htaccess as password potection thats work fine.

But why does this not work :(
php_value_include_path /home/sites/home/web/horde/phplib
php_value_auto_prepend_file /home/sites/home/web/horde/phplib/prepend.php3


This is a snip from access.conf
-----------------------------------------
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"

#AllowOverride AuthConfig Indexes Limit
AllowOverride All

# ignore .ht*
<Files ".ht*">
deny from all
</Files>

-x - Ed - x-
07-11-2001, 07:13 PM
Place this in your httpd.conf file between the virtual host container you want to allow .htaccess to:

# Allow .htaccess in web directory
<Directory /home/sites/THE_SITE_NUMBER/web>
Options All
AllowOverride All
<Limit GET>
order allow,deny
allow from all
</Limit>
</Directory>