InMotion Hosting Support Center

htaccess: allow access to file in password protected directory?

Category: How To

jdgrimes
Asked:
2013-02-07 11:15 am EST

Hits: 503
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

0

scott
Staff
28,404 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

Social Media Login

   
Social Login Joomla

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!