I am trying to password protect my entire site I have built. I edited .htaccess in public_html and this is what I have:
Powered by Zyro.com
ErrorDocument 401 "Unauthorized"
ErrorDocument 403 "Forbidden"
RewriteEngine On
RewriteBase /
PERSISTENT CONTENT
DirectoryIndex index.php index.cgi index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ zyro/$1 [L,QSA]
AuthType Basic
AuthName "Protected Area"
AuthUserFile /home/cbpbmembers/public_html/.htpasswd
Require valid-user
My .htpassword (in public_html as well) is as follows:
members:xxxxxxxxxx
When I have the Auth lines uncommented the site generates the following error:
Application error
An error occurred in the website and your page could not be displayed. If you are the website owner, check your logs for details.