php - facing issue with htpasswd in wordpress site -


i trying develop http authentication in 1 of wordpress site.

i have done below code this.

in .htaccess file @ root folder.

# begin wordpress <ifmodule mod_rewrite.c>   rewriteengine on   rewritebase /htpass_wordpress/   rewriterule ^index\.php$ - [l]   rewritecond %{request_filename} !-f   rewritecond %{request_filename} !-d   rewriterule . /htpass_wordpress/index.php [l] </ifmodule>  # end wordpress 

i have created 1 more.htaccess file wp-admin folder.

authtype basic authuserfile /htpass_wordpress/wp-admin/.htpasswd authname "my private area" require valid-user 

i have created 1 htpasswd file , put in wp-admin( same directory htaccess wp-admin stored).

i have stored user name , base 64 encrypted password in file.

now when access wp-admin area, pop appears ask login. provide username/pass , allows me access wp-admin. gives me 500 server error.

does 1 know going wrong?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -