PDA

View Full Version : .htaccess problem


googleit
08-23-2006, 11:06 PM
Hi
i have uploaded my .htaccess & .htpasswd in filezilla
but when ever i try to access the pages that are ment to be secured they can still be accessed without a password any ideas why?

bazz
08-25-2006, 02:28 PM
Not really enough information yet.

For starters though, I would make sure that you have the .htaccess file in the directory that you wish to secure.

Then if that doesn't ensure that you are requested to enter your password, I would ask that you post your htaccess code.

bazz

googleit
08-27-2006, 02:46 PM
Heres the code

.htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /coding zone/.htpasswd
AuthGroupFile /dev/null
require valid-user

.htpsswd
user:BRJ3YT11fYbcs

bazz
08-28-2006, 04:06 PM
Well I am no expert but this is what mine says, and it works


AuthUserFile /home/httpd/vhosts/mydomain.com/directory/.htpasswd
AuthName "Restricted Area"
AuthType Basic

<LIMIT GET PUT POST>
require valid-user
satisfy all
</LIMIT>


hth
bazz