• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Blog
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • WP Download Monitor
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
    • WP Lightbox Ultimate
    • WP Photo Seller
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

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

You are here: Home / Web Development / Apache Mod Security update, How to Fix ‘Error 406’ or ‘Not Acceptable’ issue

Last updated: October 28, 2016





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!

Related Posts

  • Query or show a specific post in wordpress
  • How to Uninstall and Reinstall WordPress
  • WordPress Easy Paypal Payment or Donation Accept Plugin
  • How to Control Access of the Web Crawlers or Web Robots to Your Site

Web Development apache,  Troubleshooting,  Web Development,  Wordpress,  WordPress Tweaks

Reader Interactions

Comments (18 responses)

  1. Alaina Bernadine says:
    May 17, 2018 at 1:08 pm

    Thank you so much! The second fix was what did it for me, as well.

  2. [email protected] says:
    October 28, 2016 at 2:00 am

    Thank you thank you thank you!

    I have been going a bit mad with this so glad to find a fix.

    Cathy

  3. Christopher Cool says:
    March 25, 2016 at 10:29 pm

    Thank you for this post! Solution #2 worked for me like a charm šŸ˜€

  4. Anon says:
    June 25, 2015 at 2:56 pm

    I usually never write comments, but I am just so grateful to you. The second option worked, thank you so much.

    Ciao!

  5. Paul Nelson says:
    June 21, 2015 at 9:33 pm

    Solution 1 totally worked for me and solved my issue! Thank you so much.

  6. Ome says:
    January 31, 2015 at 3:19 am

    Thank you for solution 1 šŸ™‚ two thumbs way up!

  7. Paul Delcour says:
    October 20, 2014 at 5:32 am

    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.

  8. Rodrigo says:
    September 12, 2014 at 5:46 pm

    Thanks! Solution 1 saved my ass!

  9. Fabiola says:
    July 21, 2014 at 3:20 pm

    Hi, thanks a lot!!! Solution 1 fixed it. Thanks so much!

  10. Joel says:
    March 2, 2014 at 3:17 pm

    Solution 1 fixed it. Thanks so much!

  11. Young P says:
    August 23, 2013 at 12:16 am

    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.)

  12. Adrian says:
    April 23, 2013 at 6:51 am

    Thanks, adding the .htaccess file to the wp-admin folder fixed my issue

  13. Mark says:
    December 12, 2012 at 6:08 am

    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.

  14. Chieh Cheng says:
    November 29, 2011 at 5:16 pm

    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.

  15. Muhammad says:
    October 18, 2011 at 1:28 pm

    Thanks a lot, you saved my day, I have bookmarked your blog, really appreciate your help.

  16. Unloari says:
    September 6, 2011 at 7:23 am

    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.

  17. adam says:
    October 10, 2009 at 5:07 am

    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

  18. Renato says:
    May 19, 2009 at 9:09 pm

    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 ?

Leave a Reply

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

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

wordpress estore plugin
wordpress membership plugin
WP Express Checkout Plugin
WordPress Lightbox Ultimate Plugin
WordPress photo seller plugin
wordpress affiliate plugin

Recent Posts

  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]
  • PayPal QR Codes [...]

Comment & Socialize

  • @Rodrigo Souza, Thank you f ...
    - admin
  • The example for 'slm_add_ed ...
    - Rodrigo Souza
  • @Ron, All the valid transac ...
    - admin
  • Hello, when people have sel ...
    - Ron
  • We have hte following featu ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2023 | Tips and Tricks HQ