<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Double index.php problem</title>
	<atom:link href="http://www.poiesis.co.za/index.php/2009/06/double-indexphp-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.poiesis.co.za/index.php/2009/06/double-indexphp-problem/</link>
	<description>Because IT matters</description>
	<lastBuildDate>Mon, 03 Jan 2011 16:31:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: Brent</title>
		<link>http://www.poiesis.co.za/index.php/2009/06/double-indexphp-problem/comment-page-1/#comment-305</link>
		<dc:creator>Brent</dc:creator>
		<pubDate>Sun, 03 Jan 2010 14:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.poiesis.co.za/?p=60#comment-305</guid>
		<description>After the &lt;code&gt;if (&#039;&#039; == $url) return $url;&lt;/code&gt; statement. Something like this:

&lt;code&gt;function clean_url( $url, $protocols = null, $context = &#039;display&#039; ) {&lt;/code&gt;
	&lt;code&gt;$original_url = $url;&lt;/code&gt;
&lt;br /&gt;&lt;br /&gt;
	&lt;code&gt;if (&#039;&#039; == $url) return $url;&lt;/code&gt;
	&lt;code&gt;$url = preg_replace(&#039;&#124;[^a-z0-9-~+_.?#=!&amp;;,/:%@$\&#124;*\&#039;()\\x80-\\xff]&#124;i&#039;, &#039;&#039;, $url);&lt;/code&gt;
	&lt;code&gt;$strip = array(&#039;%0d&#039;, &#039;%0a&#039;, &#039;%0D&#039;, &#039;%0A&#039;);&lt;/code&gt;
	&lt;code&gt;$url = _deep_replace($strip, $url);&lt;/code&gt;
	&lt;code&gt;$url = str_replace(&#039;;//&#039;, &#039;://&#039;, $url);&lt;/code&gt;
	&lt;code&gt;&lt;em&gt;$url = str_replace(&#039;index.php/Index.php&#039;,&#039;index.php&#039;,$url);&lt;/em&gt;&lt;/code&gt;

</description>
		<content:encoded><![CDATA[<p>After the <code>if ('' == $url) return $url;</code> statement. Something like this:</p>
<p><code>function clean_url( $url, $protocols = null, $context = 'display' ) {</code><br />
	<code>$original_url = $url;</code></p>
<p>	<code>if ('' == $url) return $url;</code><br />
	<code>$url = preg_replace('|[^a-z0-9-~+_.?#=!&#038;;,/:%@$\|*\'()\\x80-\\xff]|i', '', $url);</code><br />
	<code>$strip = array('%0d', '%0a', '%0D', '%0A');</code><br />
	<code>$url = _deep_replace($strip, $url);</code><br />
	<code>$url = str_replace(';//', '://', $url);</code><br />
	<code><em>$url = str_replace('index.php/Index.php','index.php',$url);</em></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: berkem ceylan</title>
		<link>http://www.poiesis.co.za/index.php/2009/06/double-indexphp-problem/comment-page-1/#comment-95</link>
		<dc:creator>berkem ceylan</dc:creator>
		<pubDate>Tue, 29 Dec 2009 23:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.poiesis.co.za/?p=60#comment-95</guid>
		<description>I couldn&#039;t do this. Where should I place to code?</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t do this. Where should I place to code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

