Bear, Diah and Pasha » 406 No More
Feed on
Posts
Comments

406 No More

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
  • Share/Bookmark

Permalink | Trackback URI

20 Responses to “406 No More”

  1. on 02 Sep 2008 at 2:13 pmAndy Bailey


    well done on sorting out your problem, it feels great when you can fix something the mighty hosting company doesn’t know how to doesn’t it?

    Andy Bailey’s last blog post… The secret conspiracy behind the failing economy..

    Reply

  2. on 02 Sep 2008 at 3:00 pmpapabear


    Andy, Thanks to you for getting the ball rolling! It does feel good!

    Reply

  3. on 02 Sep 2008 at 3:52 pmlankapo


    hehe dapat idea masa tgh mandi ker hehe, camni kena mandi selalu nih..,mandi ke minum air hehe

    Reply

  4. on 02 Sep 2008 at 3:56 pmpapabear


    lankapo, cam tu lah ceritanya… minum? mana boley… haha!

    Reply

  5. on 02 Sep 2008 at 4:18 pmnegaraku.net


    406 No More…

    I have got rid of my 406 error!…

  6. on 02 Sep 2008 at 4:24 pmBlogatiser.com


    406 No More…

    I have got rid of my 406 error!…

  7. on 02 Sep 2008 at 5:03 pmcheryna


    sabo bro…i will visit u whenever i can:D

    cheryna’s last blog post… ramadhan: day 1

    Reply

  8. on 02 Sep 2008 at 5:19 pmpapabear


    cheryna, masalah dah settle… selamat berpuasa!

    Reply

  9. on 02 Sep 2008 at 5:49 pmtopo


    yeah!!!! finally… my problem is solve…

    Reply

  10. on 02 Sep 2008 at 6:42 pmBioTecK


    Commentluv is just something extra. I comment because I like the blog or the post. If someone hasn’t installed Commentluv then it’s fine with me! ;)
    Anyway, Google is you’re friend! Most of the hosting companies are just after your money! ;)

    BioTecK’s last blog post… Customize The Color Of Each Windows XP Folder

    Reply

  11. on 02 Sep 2008 at 6:46 pmaffuan


    wah. aku tak guna la plugin tu. :D

    Reply

  12. on 03 Sep 2008 at 12:36 ampapabear


    topo, were u having the same problem too?

    bioteck, you are right, I’ll go for the contents too.

    affuan, tau tak pe…

    Reply

  13. on 03 Sep 2008 at 12:50 amtopo


    ya… aku da try banyak cara da… cara ni pon x berkesan gak.. ke aku salah letak??

    Reply

  14. on 03 Sep 2008 at 1:02 ampapabear


    topo, kau punya 406 within wordpress atau external. aku punya problem ni external so aku kena update .htaccess kat root tp kalau within wordpress, ada solution kat wordpress.org punya forum where u have to create .htaccess in your wp-admin folder with some codes…. that one aku tak bother sgt sebab tak effect orang lain….

    Reply

  15. on 03 Sep 2008 at 6:30 pmcheryna


    err….posting arinieh takde ek?:P

    cheryna’s last blog post… ramadhan: day 2

    Reply

  16. on 03 Sep 2008 at 11:53 pmpapabear


    cheryna, a busy day… check back soon!

    Reply

  17. on 04 Sep 2008 at 1:26 amBioTecK


    I’m experiencing some wierd thing in Commentluv..I have published a new post called “To Vista Or Not To Vista” and commentluv is pointïng to one of my previous post from

    2 days ago called “Customize The Color Of Each Windows XP Folder”.

    I’m getting this on everyblog with commentluv installed.. Hmm.. Well, I guess

    something IS going on!

    BioTecK’s last blog post… Customize The Color Of Each Windows XP Folder

    Reply

  18. on 04 Sep 2008 at 1:57 ampapabear


    bioteck, let me go and try that at your blog and see whether it will pick up my last blog correctly or not. Sometimes, it takes time for it to pick up the latest blog…

    Reply

  19. on 04 Sep 2008 at 4:00 amBioTecK


    I know that it can take some time before it can pick up the latest blog post but this is really odd. I found it very strange cause yesterday my blog seemed to be offline and a friend of me send me an email about it. So this morning I checked and nothing seemed to be wrong & I couldn’t find anything odd..
    So I used the link in your post but then again: nothing seems to be wrong, however when you comment on my blog, your latest blog post doesn’t show up! ;)
    Strange, isn’t it?

    BioTecK’s last blog post… Customize The Color Of Each Windows XP Folder

    Reply

  20. on 04 Sep 2008 at 9:45 ampapabear


    bioteck, it is kind of strange but I have been noticing this on your blog and a few other blogs that I commented, there are times where the last post would appear and some other times, it would just refuse to come out… I wonder why but I just let it be…

    Reply

Trackback URI | Comments RSS

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.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled