Apache Mod Security update, How to Fix ‘Error 406′ or ‘Not Acceptable’ issue
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 🙂
working fine 🙂
Thank you for your feedback 🙂
I’m glad to hear that your problem is solved.