<?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>CodeIgniter-jQuery &#187; htaccess</title>
	<atom:link href="http://www.codeigniter-jquery.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeigniter-jquery.com</link>
	<description>Your Guide to All CodeIgniter &#38; jQuery Resources</description>
	<lastBuildDate>Mon, 18 Jan 2010 23:55:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CodeIgniter htaccess problems</title>
		<link>http://www.codeigniter-jquery.com/codeigniter/codeigniter-htaccess/</link>
		<comments>http://www.codeigniter-jquery.com/codeigniter/codeigniter-htaccess/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:20:13 +0000</pubDate>
		<dc:creator>ci_jquery</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.codeigniter-jquery.com/?p=23</guid>
		<description><![CDATA[One of the most attractive features of CodeIgniter is the clean url structure that can be generated with such ease.  The problem is getting the .htaccess rewrite to work on the first attempt. The first thing most users search for after installing CodeIgniter is a way to remove the index.php file from the url structure. I thought I would take care of that question here.]]></description>
			<content:encoded><![CDATA[<p><span class="drop">O</span>ne of the most attractive features of CodeIgniter is the clean url structure that can be generated with such ease.  The problem is getting the .htaccess rewrite to work on the first attempt. The first thing most users search for after installing CodeIgniter is a way to remove the index.php file from the url structure. I thought I would take care of that question here.</p>
<p>The CodeIgniter User Guide gives this example:</p>
<p><code>RewriteEngine on<br />
RewriteCond $1 !^(index\.php|images|robots\.txt)<br />
RewriteRule ^(.*)$ /index.php/$1 [L]</code></p>
<p>But this has a tendency to fail for most people, who must then resort to the forums.</p>
<p>A more elaborate solution can be found in the <a title="CI Forums" href="http://codeigniter.com/forums/viewthread/85507/">CodeIgniter Forums</a>.</p>
<p><code>&lt;IfModule mod_rewrite.c&gt;<br />
&nbsp;&nbsp;&nbsp;RewriteEngine On<br />
&nbsp;&nbsp;&nbsp;RewriteBase /<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#Removes access to the system folder by users.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#Additionally this will allow you to create a System.php controller,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#previously this would not have been possible.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#'system' can be replaced if you have renamed your system folder.<br />
&nbsp;&nbsp;&nbsp;RewriteCond %{REQUEST_URI} ^system.*<br />
&nbsp;&nbsp;&nbsp;RewriteRule ^(.*)$ /index.php?/$1 [L]<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#Checks to see if the user is attempting to access a valid file,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#such as an image or css document, if this isn't true it sends the<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#request to index.php<br />
&nbsp;&nbsp;&nbsp;RewriteCond %{REQUEST_FILENAME} !-f<br />
&nbsp;&nbsp;&nbsp;RewriteCond %{REQUEST_FILENAME} !-d<br />
&nbsp;&nbsp;&nbsp;RewriteRule ^(.*)$ index.php?/$1 [L]<br />
&lt;/IfModule&gt;<br />
&lt;IfModule !mod_rewrite.c&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# If we don't have mod_rewrite installed, all 404's<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# can be sent to index.php, and everything works as normal.<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Submitted by: ElliotHaughin<br />
&nbsp;&nbsp;&nbsp;ErrorDocument 404 /index.php<br />
&lt;/IfModule&gt;<br />
&nbsp;&nbsp;&nbsp;AddHandler php5-script .php<br />
</code></p>
<p>This should take care of your problem. If not shoot me a comment and I&#8217;ll see what I can do to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeigniter-jquery.com/codeigniter/codeigniter-htaccess/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

