InMotion Hosting Support Center

Error 406 when trying to log in to wordpress site

Category: Wordpress

2015-05-27 3:12 am EST

Hits: 1,922
When someone tries to log in to my wordpress site, they face this error:
Error 406 - Not Acceptable

Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.
This happns when user tries to use pop-up login form in upper right corner of wordpress website. But if the user goes directly to /wp-login.php, she can log in normally. I understand this problem is related to mod_security and I can resolve it by white-listing an IP. But I want to know if there's a way to resolve this issue without turning mod_security off or white-listing a lot of IPs.
Thanks in advance for your help.

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

You must login before you can submit an answer.



42,973 Points
2015-05-28 10:54 am EST
Hello Khd,

Sorry for the problem with the 406 error that you're seeing as a result of Mod Security. There is a way that you may consider that requires that you modify your .htaccess file. You can limit access by referrer. Click on the link, and use the information to create the .htaccess modifications to secure your WordPress site.

I hope this helps to answer your question, please let us know if you require any further assistance.

Arnel C.

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

Thanks for the input.
I'm struggling with this issue right now. I have WordPress installed on multiple servers, none have this issue (they all use mod_security). I working WordPress website just got moved here to InMotion, and suddenly gets this issue (where it had not on two other servers).
I'm wondering instead if it has something to do with InMotion servers? (I don't know).
If anyone can post a fix, that would be terrific! :)
9 Points
2018-08-26 8:00 am EST
I recommend disabling ModSecurity to test if that is the root cause of the issue. If it does not resolve the issue, I recommend moving your website again, however, you should disable your plugins prior to moving it.
3,862 Points
2018-08-27 10:50 am EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

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!