Hello
I am new to using htaccess. I have got so far with my host but now I have run into an 'interesting' problem.
I've managed to restrict a directory which contains two test files index.php and test.php. When I try to access the directory itself I'm prompted for a username and password, if I enter the correct ones then index.php loads. However if I try and access either index.php or test.php then I am allowed to without any restriction.
.htaccess is
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /web2/user7423/website/learning/testing/.htpasswd
AuthGroupFile /dev/null
require valid-user
I know that I'm not supposed to have the .htpasswd file in my web directory but I'm taking this one step at a time. I want to get it working first before I use best practice.
I am using a very restrictive package on the host easily.co.uk, basically I have ftp access and nothing else.
If anyone has any ideas they would be much appreciated.
Paul