bsccwebmaster
04-15-2009, 03:32 PM
Hi
First post, so please be gentle!
I am trying to set up limited access to a folder on my website, and have been playing with .htaccess and .htpasswd files. Now, I know that I have entered the correct path for the .htpasswd file as I get a password request up when I browse to the index file in the folder where the .htaccess file is stored. I then enter the username/password I added to the .htpasswd file, it accepts them, but the page displayed is blank, even though the content exists.
My .htaccess code is:
AuthName "Website Admin"
AuthUserFile /path/to/.htpasswd
AuthType basic
Require valid-user
and my password file contains one login record.
Am I missing something?
I have removed the .htacces file and it works as expected, so it must be something to do with that but I don't know what else I need to do/add/change to get it working.
Many thanks
Martin
First post, so please be gentle!
I am trying to set up limited access to a folder on my website, and have been playing with .htaccess and .htpasswd files. Now, I know that I have entered the correct path for the .htpasswd file as I get a password request up when I browse to the index file in the folder where the .htaccess file is stored. I then enter the username/password I added to the .htpasswd file, it accepts them, but the page displayed is blank, even though the content exists.
My .htaccess code is:
AuthName "Website Admin"
AuthUserFile /path/to/.htpasswd
AuthType basic
Require valid-user
and my password file contains one login record.
Am I missing something?
I have removed the .htacces file and it works as expected, so it must be something to do with that but I don't know what else I need to do/add/change to get it working.
Many thanks
Martin