Hi trying to password protect my wordpress website by using .htaccess & .htpasswd, but i keep getting an error "500 Internal Server Error"
I think its because of the AuthUserFile part of the .htaccess file.
on my wordpress header i have entered the following php code to get the current directory
<?php echo getcwd(); ?>
and it returns as:
/var/sentora/hostdata/zadmin/public_html/domain_com
this is my .htaccess file. maybe you guys can figure it out.
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/sentora/hostdata/zadmin/public_html/domain_com/.htpasswd
AuthGroupFile /dev/null
require valid-user
also, the .htaccess & the .htpasswd files are both in the /domain_com
directory.