406 No More | Bear, Diah and Pasha

406 No More

Posted on the September 2nd, 2008 under Blog by papabear

I first noticed the problem when I commented at some Comment Luv enabled blogs where sometimes my last post appeared and sometimes did not. I contacted Andy Bailey, the creator of the plugin and he pointed out that there was something wrong with my remote access that threw out the 406 – Not Acceptable errors.

kisahberuang.com is now connected

He pointed me to InternetSupervision.com where using it’s Free Internet Web Server Monitoring Tool revealed that I had 406 error on all connections! However, this problem did not affect everybody trying to access this blog. Only certain people would get the 406 error and all they needed to do was to refresh or hit enter one more time and the blog will be loaded. Nevertheless, it was still very annoying and some people would just move on to another blog.

I contacted my hosting company and they were puzzled with the error. After one week, they were still unable to find any solution. The error was pointing Apache ModSecurity and naturally, the error had to be pushed to them for fixing. They told me that modsecurity blocked my script but they did not know why and they have to find out how to resolve it. Sorry for the headaches guys!

At the same time, I was hitting the search engines for days on the 406 errors and yes there were lots of recommended solutions out there advising me to append the .htaccess with some codes that will compromise the security. Reluctantly, I tried those suggestions and none of them actually worked.

This morning while having shower, it occured to me that all the errors were pointing to index.php. What if I removed the index.php from my permalinks? So, I changed the permalink structure to custom and removed the index.php from it. At the same time, while looking for anything on removing index.php, I found a thread on Digital Point forum about what must be appended into the .htaccess and this time it was not about bypassing the security.

By adding the codes below to my .htaccess, my problems are gone!

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Sometimes, the solution to a problem is really easy but most of the time it is not that obvious thus making us search for the wrong things. It is nice to see that this blog is finally connected as shown in the picture above.

Related Posts with Thumbnails

Popularity: 21% [?]

  • Share/Bookmark

20 Responses to '406 No More'

  1. September 2, 2008 at 2:13 pm
    Andy Bailey
  2. September 2, 2008 at 3:00 pm
    papabear
  3. September 2, 2008 at 3:52 pm
    lankapo
  4. September 2, 2008 at 3:56 pm
    papabear
  5. September 2, 2008 at 4:18 pm
    negaraku.net
  6. September 2, 2008 at 4:24 pm
    Blogatiser.com
  7. September 2, 2008 at 5:03 pm
    cheryna
  8. September 2, 2008 at 5:19 pm
    papabear
  9. September 2, 2008 at 5:49 pm
    topo
  10. September 2, 2008 at 6:42 pm
    BioTecK
  11. September 2, 2008 at 6:46 pm
    affuan
  12. September 3, 2008 at 12:36 am
    papabear
  13. September 3, 2008 at 12:50 am
    topo
  14. September 3, 2008 at 1:02 am
    papabear
  15. September 3, 2008 at 6:30 pm
    cheryna
  16. September 3, 2008 at 11:53 pm
    papabear
  17. September 4, 2008 at 1:26 am
    BioTecK
  18. September 4, 2008 at 1:57 am
    papabear
  19. September 4, 2008 at 4:00 am
    BioTecK
  20. September 4, 2008 at 9:45 am
    papabear

Leave a Reply




Please Note: Your comment maybe under moderation. Therefore, there is no need to resubmit your comments. Feel free to subscribe to this post comment rss feeds for future updates. Thank you!

This is a Gravatar-enabled blog. To get your own globally-recognized-avatar, please register at Gravatar.

XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


CommentLuv Enabled