Hi All,
I have been trying to password protect my website for the last week and am pulling my hair out!
I thought I saw the light at the end of th tunnel yesterday when (after advising me to use htaccess) my web hosts realised I was on a windows server and moved me to linux.
Now the htaccess seems to work in that a pop up password request appears. I type in the username and password and get a 500 Internal Server Error every time.
I have been following various guides and cannot see what I am doing wrong.
Please help.
Here is where I am to date:-
In my root directory (web/) I have my whole site files and the .htaccess.
The .htaccess is as follows:-
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /web/.htpasswd
AuthGroupFile /dev/null
require valid-user
The .htpasswd file is in the same folder which I know is bad but I want to get it to work before I move it.
The .htaccess file is as follows:-
please
LS2vSCepIJjI (that shouldn't be a smily face!)
Which is username 'please' with a password of 'work' encrypted here - http://home.flash.net/cgi-bin/pw.pl
Now as I see it I have either got it all wrong and should stop trying to do things I have no clue about. Or I simply do not have the path to the .htpasswd file correct. Or I am messing up the encyption somehow.
Sorry for the long winded post but I am fed up and thought I would give all of the info I have.
Thanks.
I have been trying to password protect my website for the last week and am pulling my hair out!
I thought I saw the light at the end of th tunnel yesterday when (after advising me to use htaccess) my web hosts realised I was on a windows server and moved me to linux.
Now the htaccess seems to work in that a pop up password request appears. I type in the username and password and get a 500 Internal Server Error every time.
I have been following various guides and cannot see what I am doing wrong.
Please help.
Here is where I am to date:-
In my root directory (web/) I have my whole site files and the .htaccess.
The .htaccess is as follows:-
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /web/.htpasswd
AuthGroupFile /dev/null
require valid-user
The .htpasswd file is in the same folder which I know is bad but I want to get it to work before I move it.
The .htaccess file is as follows:-
please
LS2vSCepIJjI (that shouldn't be a smily face!)Which is username 'please' with a password of 'work' encrypted here - http://home.flash.net/cgi-bin/pw.pl
Now as I see it I have either got it all wrong and should stop trying to do things I have no clue about. Or I simply do not have the path to the .htpasswd file correct. Or I am messing up the encyption somehow.
Sorry for the long winded post but I am fed up and thought I would give all of the info I have.
Thanks.
Last edited: