Apache and .htaccess

Associate
Joined
13 Nov 2003
Posts
1,567
Location
Manchester
Hi All

Think this belongs in here more than HTML.

I am trying to setup .htaccess on my apache/linux server.

I have created the htaccess file and uploaded it, but the server seems to be ignoring it. Even if I fill the file with random text the server works fine, when it should throw up an internal server error.

Any ideas?
Aaron
 
first check that AccessFileName hasn't been changed from the default of ".htaccess" in your httpd.conf, then check that a AllowOverride declaration is present for the directory, or a parent directory of the directory you have the .htaccess file in, and has a value corresponding to the property of which you wish to override.
ie :

Code:
<Directory "/var/www/localhost/">
    AllowOverride All
    ...
 
Hiya

Yeah turned out to be the overides, got it working for images now. Just trying to stop users leeching our video (wmv) files now

Aaron
 
Back
Top Bottom