php - WordPress htaccess Admin Panel Prompting For Password on Main -
i have next in htaccess file in /wp-admin folder:
authtype basic authname "example" authuserfile "/home/username/.htpasswds/public_html/example.com/wp-admin/passwd" require valid-user
for reason when load wordpress article prompts authentication. main page fine, individual articles prompt password.
i found solution problem. reason why prompting password because wordpress plugins require access admin-ajax.php.
if add together next on top of quote above allow password protect wp-admin folder.
# allow plugin access admin-ajax.php around password protection <files admin-ajax.php> order allow,deny allow satisfy </files>
php wordpress apache .htaccess
No comments:
Post a Comment