Help with - Password protecting your pages with htaccess

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

13-Jun-08 11:08
regarding How- Password protecting your pages with htaccess

I did everything on this tutorial I have my site on a php server
when I am trying to access my file (protected) I just can access it,

it doesn't ask for password or anything, Do I have tomake any
additional settings , thanks in advance
13-Jun-08 11:28
Hi John,

First of all I'd recommend restarting your browser and trying again, just in case it's cached the username/password.

Secondly, check that you're running an Apache server, and that it has been configured to allow password-protected pages (if you're on shared hosting then ask your hosting company). You need to have the AuthConfig override enabled in the Apache config.

Finally, make sure you've set the correct path to your .htpasswd file in your .htaccess file, and that both files are readable by the Apache user (e.g. chmod 644).

Does that help?

Cheers,
Matt

--
Matt Doyle
ELATED - Helping people make websites since 1997!
http://www.elated.com/
13-Jun-08 12:04
what is the file extension for .htpasswd and .htaccess is like (.htaccess.txt)?
13-Jun-08 13:37
There is no filename extension for these files. They are called simply '.htpasswd' and '.htaccess'.

Cheers,
Matt

--
Matt Doyle
ELATED - Helping people make websites since 1997!
http://www.elated.com/

 
New posts
Old posts

Follow Elated