.htaccess results in 404 error....
Posted on 2008-10-02
Probably glaringly obvious but I just can't seem to see it and it's been driving me nuts!
Trying to password protect a webserver directory with .htaccess/.htpasswd combination following a move to a new server. As soon as the .htaccess file is present I get a 404 error. Remove or rename the .htaccess and I can view the site.....
I have created the .htaccess and generated the .htpasswd file.
The .htaccess looks like this:
AuthName "Administration Page - Please Log In"
<limit GET PUT POST>
The working directory of the .htpasswd is /home/ruralcon
What am I doing wrong?? Any help would be massively appreciated, as this has taken up far too much of my morning already!!!