Apache Mod Security Error While Login WordPress

One of the most creepy issues Apache mod security error while login WordPress, which can happen with you if you are a WordPress user. Same thing happened with me most of the times, so I tried to solve this issue and spend many hours on it. Writing this article purpose is just to save your times, which I couldn’t.

Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Apache Mod Security Error While Login WordPress

Apache Mod Security Error (Apache 406 Not Acceptable Error):

This article is not just contributed by me, its thoughts of different bloggers and mine too. Let’s take a look, which things can resolve this error.

Solution 1

Go inside your website root directory then wp-admin/.htaccess (If there is no file with this name so create the new one first then use the below command inside that)

[code]
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
[/code]

Solution 2

Go to file manager > public_html then find .htaccess file (If there is no file with this name so create the new one first then use the below command inside that) Must copy your default .htaccess and paste in notepad because in case of issue or error you can use that backup otherwise your website can go down.

[code]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
[/code]

Solution 3

If no one above tactics works then you need to go to your hosting cpanel > Security > Mod Security option and disable it.

If you didn’t find Mod Security option under security section inside your cpanel so this means your hosting company or provider disabled this options from your end. Eventually, you have an option to contact your hosting provider via live chat, phone or email tickets and tell them to disable the mod security from their end for your account.

Solution 4

Sometimes due to some suspicious activities and excessive usage of proxies, your IP can be blacklisted. So in that condition, do the same contact your hosting provider and tell them to white-list your current IP address. They will ask your IP address to enter on their end so you can get your internet IP from here and give it to their team.

In the end

You will be eager to know while reading the entire article that which trick helped me out that is Solution#4. But most of the people I found on the internet was giving credit to the second solution but sometimes your problems need some extra concentration to reach an actual solution. Don’t forget to tell me which solution helped you to solve your mod security error in WordPress.

In case of any question, you may write below or can join our community forum to interact with our experts directly.

Leave a Reply

Your email address will not be published. Required fields are marked *