<?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>Tips for Twits &#187; codeigniter</title>
	<atom:link href="http://t.wits.sg/tag/codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://t.wits.sg</link>
	<description>WARNING: excessive use of this site will increase MP at the expense of HP</description>
	<lastBuildDate>Mon, 14 Jun 2010 01:55:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HOWTO: Codeigniter, IIS and ISAPI_Rewrite</title>
		<link>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/</link>
		<comments>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 06:25:52 +0000</pubDate>
		<dc:creator>gaweee</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://t.wits.sg/?p=7</guid>
		<description><![CDATA[Pretty URLs on IIS is possible. Not so much to make it pretty but to make it convenient when testing your system. Its really simple too! Step 1 &#8211; Install ISAPI_Rewrite from Helicon Step 2 &#8211; Configure your ISAPI_Rewrite httpd.ini below is my configuration for a codeigniter virtual directory called firingrange RewriteRule ^/firingrange/(images&#124;css&#124;files&#124;js)(.*)$ /firingrange/webroot/$1$2 [L] [...]]]></description>
			<content:encoded><![CDATA[<p>Pretty URLs on IIS is possible. Not so much to make it pretty but to make it convenient when testing your system. Its really simple too!</p>
<div class="contentblock">
<strong>Step 1 &#8211; Install ISAPI_Rewrite from <a href="http://www.helicontech.com/isapi_rewrite/" target="_blank">Helicon</a></strong>
</div>
<div class="contentblock">
<strong>Step 2 &#8211; Configure your ISAPI_Rewrite httpd.ini</strong><br />
below is my configuration for a codeigniter virtual directory called firingrange</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">RewriteRule ^/firingrange/(images|css|files|js)(.*)$ /firingrange/webroot/$1$2 [L]
RewriteRule ^/firingrange/$ /firingrange/index.php [L]
RewriteRule ^/firingrange/index.php$ /firingrange/index.php [L]
RewriteRule ^/firingrange/index.php?(.*)$ /firingrange/index.php?$1 [L]
RewriteRule ^/firingrange/(\w+).php$ /firingrange/webroot/($1).php [L]
RewriteRule ^/firingrange/(.+)\?(.*)$ /firingrange/index.php?$1&amp;amp;$2 [L]
RewriteRule ^/firingrange/(.*)$ /firingrange/index.php?$1 [L]</pre></div></div>

<p>Just like the mod_rewrite HOWTO, I threw all my static files into webroot folder so that you can access the site via http://t.wits.g/images/myimage.jpg easily. Same goes for css and js.
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://t.wits.sg/2008/06/17/howto-codeigniter-iis-and-isapi_rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Codeigniter and mod_rewrite</title>
		<link>http://t.wits.sg/2008/06/13/my-codeigniters-mod_rewrite-rules/</link>
		<comments>http://t.wits.sg/2008/06/13/my-codeigniters-mod_rewrite-rules/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 21:14:17 +0000</pubDate>
		<dc:creator>gaweee</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://t.wits.sg/?p=4</guid>
		<description><![CDATA[I cant remember the last time i got mod_rewrite to just work. I think i know regex, i think i know how http request works, i think i know some mod_rewrite. I try. For sure it breaks. This is undeniable proof that good things ONLY come to those who sweat and strain their necks&#8230; The [...]]]></description>
			<content:encoded><![CDATA[<p>I cant remember the last time i got mod_rewrite to just work. I think i know <em>regex</em>, i think i know how http request works, i think i know some mod_rewrite. I try. For sure it breaks. This is undeniable proof that good things ONLY come to those who sweat and strain their necks&#8230;</p>
<p>The following is my mod_rewrite ruleset for codeigniter</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">Options +FollowSymlinks
RewriteEngine on
&nbsp;
RewriteCond %{REQUEST_URI} (index\.php|webroot/|images/|css/|js/|robots\.txt|favicon\.ico)
RewriteRule ^(images|css|files|js)/(.*)$ webroot/$1/$2 [L]
RewriteRule ^(favicon\.ico)$ webroot/$1 [L]
&nbsp;
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]</pre></div></div>

<p>I threw all my static files into webroot folder so that you can access the site via http://t.wits.g/images/myimage.jpg easily. Same goes for css and js.<br />
So now you can access your controllers through the preferred pretty url: http://t.wits.sg/welcome<br />
I&#8217;ll go hack the router.php file someday when i&#8217;m free enough so that it can accept GET requests too.</p>
]]></content:encoded>
			<wfw:commentRss>http://t.wits.sg/2008/06/13/my-codeigniters-mod_rewrite-rules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
