Error 406 or Not Acceptable Issue How to Fix For WordPress


Few weeks ago I started having Error 406 with Not Acceptable! on one of my WordPress sites when trying to edit, update or save a post or a page. I kept getting the following message when trying to save a post. Getting an error 406 Not Acceptable The request is not acceptable.
Error 406 I tried many fixes and nothing seemed to have helped getting rid of the issue. So I decided to reinstall WordPress (How to Uninstall and Reinstall WordPress). Even the reinstall didn’t help! Later I found out that the “Not acceptable! Error 406” occurs due to Mod Security updates on the server. So if you are having a similar problem then you can try one of the following methods to fix it.

Error 406 (Solution 1 for Fixing)

Backup your .htaccess file if you have one in the ‘wp-admin’ directory. Then make a ‘.htaccess’ file with the following content and upload it to ‘wp-admin’ directory.

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

You can use any text editor such as Notepad to create this file.

You will need to upload this .htaccedss file to your server. So if you don’t know how to upload a file to your server then check this tutorial on php.

Error 406 (Solution 2 for Fixing)

This is the solution that worked for me for my WordPress site.

Backup your .htaccess file if you have one in the public_html directory.

Open the .htaccess file with any text editor and observe the lines between the “# BEGIN WordPress” and “# END WordPress” tags. Make sure the lines look somewhat like the following. If not then update the file with the following content and upload it to the ‘public_html’ directory.

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

Hopefully one of these solutions help fix your “Not Acceptable” error. Good luck. Well even you can go for best guide for WordPress here WP101This include WordPress Training Videos and Tutorials.

Abhijit is a Certified Digital Marketer and passion-driven creative individual based in Maharashtra (Karad). He is also Freelance Blogger, Enterprenuer and Webmaster.