InMotion Hosting Support Center

htaccess: allow access to file in password protected directory?

Category: How To

2013-02-07 11:15 am EST

Hits: 646
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?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


43,761 Points
2013-02-07 2:42 pm EST
Hello jdgrimes,

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

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

Social Login Joomla

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!