Apache Mod Security update, How to Fix ‘Error 406′ or ‘Not Acceptable’ issue

If you found this post helpful, kindly share it and show your support :)

Issue :- Received following “Not Acceptable ! Error 406” when trying to save a post or a page on the WordPress site

Not Acceptable
An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server

You can follow any of steps to fix this error.

Solution 1 :-

If you have .htaccess file under your wp-admin directory, you can rename it to .htaccess-bk and create a new .htaccess file under wp-admin directory and add following content to it and try to save a post or a page again.

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

If you are still facing same error when trying to save a post or a page, please try below one.

Solution 2 :-

If you have .htaccess file under your public_html directory, you can take a backup of the file. and open the .htaccess file with any text editor and check the lines between the “# BEGIN WordPress” and “# END WordPress” tags and make sure the lines look like following content. If not then update the .htaccess file with the following content.

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

Hopefully one of these solutions help you to fix “Not Acceptable” error. Good luck 🙂

Loading

Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website Errorlogz.com, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

2 Responses

  1. Sajan says:

    working fine 🙂

Leave a Reply

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