Image 01 Image 02

406 No More

Posted on 2nd September 2008 by papabear
20

If you're new here, you may want to subscribe to my RSS feed or get my updated posts via email. Thanks for visiting Kisahberuang.com!

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.

Popularity: 64% [?]

Share/Save/Bookmark

Tags: , ,
Permalink | Trackback URI



20
Responses to.. 406 No More

1

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



2
papabear posted on September 2nd 2008

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



3

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



4
papabear posted on September 2nd 2008

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



5

406 No More…

I have got rid of my 406 error!…



6

406 No More…

I have got rid of my 406 error!…



7

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

cheryna’s last blog post… ramadhan: day 1



8
papabear posted on September 2nd 2008

cheryna, masalah dah settle… selamat berpuasa!



9

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



10

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



11

wah. aku tak guna la plugin tu. :D



12
papabear posted on September 3rd 2008

topo, were u having the same problem too?

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

affuan, tau tak pe…



13

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



14
papabear posted on September 3rd 2008

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



15

err….posting arinieh takde ek?:P

cheryna’s last blog post… ramadhan: day 2



16
papabear posted on September 3rd 2008

cheryna, a busy day… check back soon!



17

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



18
papabear posted on September 4th 2008

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…



19

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



20
papabear posted on September 4th 2008

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…




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!

You may use XHTML codes in your comment.