htaccess: allow access to file in password protected directory?
I am running WordPress, and have password protected /wp-admin/ using cPanel. I was trying to allow access to the admin-ajax.php file, but I wasn't able to get it to work. I tried adding this to the .htaccess file in /wp-admin/, but admin-ajax still asked for a password.
(See comment for code. It won't work properly here.)
Why won't this work?
(See comment for code. It won't work properly here.)
Why won't this work?
I inserted your code, unmodified, into the .htaccess in the wp-admin folder and it is working without issue.
Please let us know if you are having any further issues with it.
Best Regards,
Scott M