InMotion Hosting Support Center

Wordpress login getting error

Category: Wordpress

n/a Points
2014-07-30 6:48 pm EST

Hits: 150

Error 406 - Not Acceptable

An error has occurred. 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.

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

You must login before you can submit an answer.



9,968 Points
2014-07-30 7:10 pm EST
Hello, and thank you for your question.

The Mod Security error that your WordPress site is generating is:

[msg "POST to wp-login.php without redirect_to"] [severity "WARNING"] [tag "WEB_ATTACK/SHELL ACCESS"

It looks like you're not using the default wp-login.php script to handle your WordPress logins. The theme that you're currently using is missing the required hidden redirect_to field that our server requires to authenticate with WordPress correctly.

You might wish to contact the theme developer and let them know of these issues so they can roll out an update and fix this permanently. But for the time being if you'd like to fix this yourself you should be able to modify this file and add the highlighted code:

/wp-content/themes/AskIt/page-login.php Line 43:

<p><label><span><?php esc_html_e('Password','AskIt'); ?>: </span><input type='password' name='pwd' id='pwd' size='20' /><span class='et_protected_icon et_protected_password'></span></label></p>
<input type="hidden" name="redirect_to" value="">
<input type='submit' name='submit' value='Login' class='etlogin-button' />

You of course would want to replace with your own domain name.

Please let us know if you are still having any issues at all.

- Jacob

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

Like this Question?

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!