Few weeks ago I started having “Not Acceptable! Error 406” on one of my WordPress sites when trying to save a post or a page. I kept getting the following message when trying to save a post.
Not Acceptable
An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server
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.
Solution 1 for Fixing 406 Error
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 </IfModule>
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 FTP.
Solution 2 for Fixing 406 Error
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] </IfModule> # END WordPress
Hopefully one of these solutions help fix your “Not Acceptable” error.
Good luck!
Thank you so much! The second fix was what did it for me, as well.
Thank you thank you thank you!
I have been going a bit mad with this so glad to find a fix.
Cathy
Thank you for this post! Solution #2 worked for me like a charm 😀
I usually never write comments, but I am just so grateful to you. The second option worked, thank you so much.
Ciao!
Solution 1 totally worked for me and solved my issue! Thank you so much.
Thank you for solution 1 🙂 two thumbs way up!
Hi all,
my solution is, let your host provider know, they’ll ask for your IP address, they clear that address and all is fine again.
Thanks! Solution 1 saved my ass!
Hi, thanks a lot!!! Solution 1 fixed it. Thanks so much!
Solution 1 fixed it. Thanks so much!
Solution 1 worked for me!
I didnt actually place it in the wp-admin folder but i the main root of the wordpress install (where the index.php, wp-config.php, etc. files are found.)
Thanks, adding the .htaccess file to the wp-admin folder fixed my issue
Just started getting a 406 page in Joomla 2.5 when clicking save, tried turning off mod_security in the .htaccess file, this didn’t work. Contacted my hosting provider and they confirmed the error, they disabled mod_security, this fixed the issue immediately.
This error is caused by a partial connection between the browser and the server, perhaps a corrupted cookie that the server couldn’t handle. Therefore, you can clear the browser data to recover from this situation.
Thanks a lot, you saved my day, I have bookmarked your blog, really appreciate your help.
Really like your websites details! Undoubtedly a beautiful provide of knowledge that is extraordinarily helpful. Stick with it to hold publishing and i’m gonna proceed reading by means of! Cheers.
No, it didn’t work for me, but thank you anyway
I have this error just when i try to see the 2nd or 3d until the 10th page in users
I have my blog in a folder /blog and it worket open the blog in the main folder of my domain, not in /blog.. what i have to change in this case ?