.htaccess not working at all.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
okanem
Forum Newbie
Posts: 9
Joined: Thu Jan 12, 2006 6:26 am

.htaccess not working at all.

Post by okanem »

I have created a .htaccess file in the htdocs folder of Apache running on XP

The file is as follows


ErrorDocument 401 rejection.html
AuthUserFile .htpass
AuthGroupFile /dev/null
AuthName "cws"
AuthType Basic
require valid-user


To make things simple i created the .htpass file in the htdocs folder too using the htpasswd command.

The password file looks fine and displays the user and pass ok.

When I go to index.php on IE5, it allows me to view it fine without asking for auth'.

What am I doing wrong??

Please Help
Okanem
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

mod_auth isn't installed perhaps?
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

By default Apache is configured with AllowOveride None, I'm pretty sure when this directive is set .htaccess files are not parsed at all. Have you changed the AllowOveride directive?
Post Reply