I'm tiring to implement htaccess password protection for my WordPress site, users need to see my site after enter htaccess username and password, i used below codes and it shows password enter box,
My htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AuthName "Restricted Area"
AuthType Basic
AuthUserFile .htpasswd
AuthGroupFile /dev/null
require valid-user
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 141.101.99.132
deny from 173.245.53.65
deny from 173.245.53.74
but after enter password it shows server error messages
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@daqta.lixdea.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
my site is http://www.daqta.com/ username- test , password- test