I came across a strange error today. It only seemed to occur since I’d transfered a blog to a new webhost recently. I did my usual database backup and the transfer went well until I tried to modify some files from within the Wordpress admin area itself. I kept getting a Error 406 Not Acceptable when I tried to edit or change anything at all! This was very strange, I had never seen this error before. This had to be a web server issue I figured.
And sure enough after a bit of searching on the internet a solution was found on the UrbanGiraffe website. The Mysterious Error 406 article on the Urban Giraffe website clearly illustrates the problem. It occurs because of the Apache module called mod_security. This module acts like an Apache firewall, blocking a lot of the usual routes that people use to hack websites and displays a 406 Error for anything unusual. So that’s it! It appears that my new web server’s mod_security, when configured aggressively, can cause problems in CMS’s like Mambo, WordPress and other web scripts.
The solution is simple. The lines of code shown on the left can be added to your .htaccess file to disable mod_security.
Obviously you will lose any benefits that mod_security module had, but this works great for a quick fix to the 406 Error problem on your blog.
3 Responses
Shantanu Goel
May 1st, 2008 at 1:03 pm
1With Mod security 2, this is no longer valid. I’ve written about it and a workaround at
http://tech.shantanugoel.com/2008/05/01/http-406-errors-galore.html
bc
May 1st, 2008 at 4:23 pm
2That’s interesting, Shantanu. Thanks for commenting.
Thankfully, I haven’t had that problem in a while but I’m checking out your post as I type, cheers.
Reyn Aria
June 27th, 2008 at 11:51 am
3Finally… I’ve been checking everything for 1 hour. Surprisingly, the solution is very simple. You really save my day! Thanks!
RSS feed for comments on this post · TrackBack URI
Leave a reply
Blog Humor
Revenue Programs
WordPress Optimization Tips eBook
PPC Coach
NeverBlue Ads
WordPress DataFeed Import
Text Link Ads
$100 in FREE Links
Recent Posts
Hosting
Pages
Tags
1 Column 2 Column 3 Column Adsense Ready Cheat Sheets CMS Style Downloads Fixed Width Fluid Width Integrated Plugins Latest News Left Sidebar Media Monetization Options Page Pinging Plugins Plugins Required Productivity Right Sidebar Search Engine Optimization SEO Sitemaps sitemap_generator Site News Statistics Themes Tips Traffic Generation Tutorials Uncategorized Variable Width Video Web 2.0 Widget Ready Widgets Wordpress NewsArchives
Technorati
My Blog Log
Alexa Traffic Rank
Categories
Top 10 Posts
Recent Comments
Links
Admin