I want a directory to be password protected on my website. I uploaded a .htaccess file and .htpasswd file in the directory that I want protected. I am using a Linux Shared Hosting Account.
This is the code I have for .htaccess
I know I have the absolute path correct. Whenever I delete this .htaccess file, the directory can be accessed but when I upload the .htaccess file, the directory itself "cannot be found" when I try to go to it on my browser.
My .htpasswd file is uploaded in the same directory. Below is what I have in that file:
Does anyone know what is wrong? How can I fix this problem?
Thanks in advance!