<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bear, Diah and Pasha &#187; .htaccess</title>
	<atom:link href="http://kisahberuang.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://kisahberuang.com</link>
	<description>The home of Papa Bear, Mama Pasha and Pasha. The story about our family and friends and things that come in between.</description>
	<lastBuildDate>Wed, 11 Jan 2012 14:53:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>406 No More</title>
		<link>http://kisahberuang.com/2008/09/02/406-no-more/</link>
		<comments>http://kisahberuang.com/2008/09/02/406-no-more/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 03:35:53 +0000</pubDate>
		<dc:creator>Papa Bear</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[406]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://kisahberuang.com/?p=272</guid>
		<description><![CDATA[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 &#8211; Not Acceptable errors. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I first noticed the problem when I commented at some <a title="comment luv" href="http://comluv.com/" target="_blank">Comment Luv</a> 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 &#8211; Not Acceptable errors.</p>
<p style="text-align: center;"><a href="http://www.shareapic.net/content.php?id=10953553&amp;owner=shaxx" target="_blank"><img class="aligncenter" src="http://i3.photobucket.com/albums/y66/berrybear/connection.jpg" border="0" alt="kisahberuang.com is now connected" /></a></p>
<p>He pointed me to InternetSupervision.com where using it&#8217;s <a title="website monitoring tools" href="http://internetsupervision.com/" target="_blank">Free Internet Web Server Monitoring Tool</a> 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. <span id="more-272"></span></p>
<p>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 <a title="modsecurity" href="http://www.modsecurity.org/" target="_blank">ModSecurity</a> 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!</p>
<p>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.</p>
<p>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 <a title="digital point" href="http://forums.digitalpoint.com/showthread.php?p=4687704" target="_blank">Digital Point forum</a> about what must be appended into the .htaccess and this time it was not about bypassing the security.</p>
<p>By adding the codes below to my .htaccess, my problems are gone!</p>
<p><code># BEGIN WordPress</code></p>
<p>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]</p>
<p># END WordPress</p>
<p>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.</p>
<div class="shr-publisher-272"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fkisahberuang.com%2F2008%2F09%2F02%2F406-no-more%2F' data-shr_title='406+No+More'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fkisahberuang.com%2F2008%2F09%2F02%2F406-no-more%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fkisahberuang.com%2F2008%2F09%2F02%2F406-no-more%2F' data-shr_title='406+No+More'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fkisahberuang.com%2F2008%2F09%2F02%2F406-no-more%2F' data-shr_title='406+No+More'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://kisahberuang.com/2008/09/02/406-no-more/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

