What should have been a straightforward .htaccess password trick, has turned into a total nightmare x(
All that should be needed to password protect a directory
is an .htaccess file in that directory, which points to .htpasswd.
.htaccess code >
the .htpasswd file has all the correct user names and encrypted passwords,AuthUserFile /site/.htpasswd
AuthName "Enter Password"
AuthType Basic
Require valid-user
and is in the same directory as .htaccess
All files on the website except index.html and content.html have been copied into a new directory named /site/
where .htaccess is located.
The password prompt activates perfectly as soon as the login button is activated on the content.html page
which directs to /site/menu.html, after entering the correct password;
Yet, for some reason I get an Internal Server Error message when trying to access any files in the /site/ directory,
even though the password is correct.
As soon as .htaccess is removed from the directory, then all files and pages within the directory are accessable again.
I'm at the end of my rope
Any ideas?
Thanks in advance!






Bookmarks