<?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: Codeigniter: Mixing segment-based URL with querystrings</title>
	<atom:link href="http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 06:32:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Angel</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-57680</link>
		<dc:creator>Angel</dc:creator>
		<pubDate>Tue, 10 Jan 2012 13:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-57680</guid>
		<description>Im really confused by this post.  Im using CI 2.1.0 and all I need to do to access any url parameter is just use

$_GET

so if I had

mydomain.com/member/id/12345/?code=B200

and I wanted access to code I just use

$my_code = $_GET[&#039;code&#039;];

and then clean up $my_code

Im not sure why everyone is going about this with hacks when this simply works.</description>
		<content:encoded><![CDATA[<p>Im really confused by this post.  Im using CI 2.1.0 and all I need to do to access any url parameter is just use</p>
<p>$_GET</p>
<p>so if I had</p>
<p>mydomain.com/member/id/12345/?code=B200</p>
<p>and I wanted access to code I just use</p>
<p>$my_code = $_GET['code'];</p>
<p>and then clean up $my_code</p>
<p>Im not sure why everyone is going about this with hacks when this simply works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Honig</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-56666</link>
		<dc:creator>Adam Honig</dc:creator>
		<pubDate>Fri, 30 Dec 2011 21:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-56666</guid>
		<description>Wow. That really saved us. Thanks!</description>
		<content:encoded><![CDATA[<p>Wow. That really saved us. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-48199</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 04 Oct 2011 19:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-48199</guid>
		<description>Can you make a version of this for CI 2.02?</description>
		<content:encoded><![CDATA[<p>Can you make a version of this for CI 2.02?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Rajpurohit</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-42559</link>
		<dc:creator>Vishal Rajpurohit</dc:creator>
		<pubDate>Sat, 02 Jul 2011 09:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-42559</guid>
		<description>Enjoy this.... 

RewriteEngine On
RewriteRule ^gallery/([a-z0-9_-]+)\.html$ index.php/page/gallery/$1 [L]
RewriteRule ^gallery/([a-z0-9_-]+)/([a-z0-9_-]+)\.html$ index.php/page/gallery_detail/$1/$2 [L]
RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/index/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php&#124;css&#124;asset&#124;images&#124;robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

1&gt; Example for gallery module [controller will be gallery and variable will move in function]
2&gt; By default on http://www.example.com/test.html [page controller &gt; index function &gt; test will become variable]

You can make any permalink with any controler with any function. Everything is possible now.</description>
		<content:encoded><![CDATA[<p>Enjoy this&#8230;. </p>
<p>RewriteEngine On<br />
RewriteRule ^gallery/([a-z0-9_-]+)\.html$ index.php/page/gallery/$1 [L]<br />
RewriteRule ^gallery/([a-z0-9_-]+)/([a-z0-9_-]+)\.html$ index.php/page/gallery_detail/$1/$2 [L]<br />
RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/index/$1 [L]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond $1 !^(index\.php|css|asset|images|robots\.txt)<br />
RewriteRule ^(.*)$ index.php/$1 [L]</p>
<p>1&gt; Example for gallery module [controller will be gallery and variable will move in function]<br />
2&gt; By default on <a href="http://www.example.com/test.html" rel="nofollow">http://www.example.com/test.html</a> [page controller &gt; index function &gt; test will become variable]</p>
<p>You can make any permalink with any controler with any function. Everything is possible now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thyago</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-39691</link>
		<dc:creator>Thyago</dc:creator>
		<pubDate>Tue, 24 May 2011 10:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-39691</guid>
		<description>Thx a lot dude, your solution fixed my problem with a facebook app.</description>
		<content:encoded><![CDATA[<p>Thx a lot dude, your solution fixed my problem with a facebook app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Codeigniter: Mixing segment-based URL with querystrings &#124; CodeIgniter Tutorials</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-39266</link>
		<dc:creator>Codeigniter: Mixing segment-based URL with querystrings &#124; CodeIgniter Tutorials</dc:creator>
		<pubDate>Tue, 17 May 2011 10:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-39266</guid>
		<description>[...] Series  andrewroland zend lucene librarycodeigniter 2.0 workshoplearncodeigniter basics  Sponsors      Top Rated TutorialsUsing Elliot Haughin&#039;s Twitter API with Codeigniter Part 2  (2 votes)CodeIgniter Active Record class and INSERT IGNORE (2 votes)Codeigniter Project Development from scratch to app Part 6  (2 votes)Tags2.0 active record ajax amplio.ch andrewroland.com api askaboutphp beginner class CMS codesamplez controller country db dragffy.com drop down egypt error flashdata form from scratch helper html index.php install jquery login lucene MVC net.tutsplus profiler reactor registration search session simplycodeigniter twitter upload URL validation variables view views workshop zend Sponsors              LinksCodeigniter: Mixing segment-based URL with querystrings [...]</description>
		<content:encoded><![CDATA[<p>[...] Series  andrewroland zend lucene librarycodeigniter 2.0 workshoplearncodeigniter basics  Sponsors      Top Rated TutorialsUsing Elliot Haughin&#39;s Twitter API with Codeigniter Part 2  (2 votes)CodeIgniter Active Record class and INSERT IGNORE (2 votes)Codeigniter Project Development from scratch to app Part 6  (2 votes)Tags2.0 active record ajax amplio.ch andrewroland.com api askaboutphp beginner class CMS codesamplez controller country db dragffy.com drop down egypt error flashdata form from scratch helper html index.php install jquery login lucene MVC net.tutsplus profiler reactor registration search session simplycodeigniter twitter upload URL validation variables view views workshop zend Sponsors              LinksCodeigniter: Mixing segment-based URL with querystrings [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonny</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-38657</link>
		<dc:creator>Jonny</dc:creator>
		<pubDate>Thu, 05 May 2011 14:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-38657</guid>
		<description>I tried this method and was getting 302 and 404 errors. 

I removed the question mark following &quot;index.php&quot; in my .htaccess rewriterule as dave suggested above. Works great now. Thanks for the article and comments everyone.</description>
		<content:encoded><![CDATA[<p>I tried this method and was getting 302 and 404 errors. </p>
<p>I removed the question mark following &#8220;index.php&#8221; in my .htaccess rewriterule as dave suggested above. Works great now. Thanks for the article and comments everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-38589</link>
		<dc:creator>jay</dc:creator>
		<pubDate>Wed, 04 May 2011 14:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-38589</guid>
		<description>Thanks for this, really helped me</description>
		<content:encoded><![CDATA[<p>Thanks for this, really helped me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wer</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-35880</link>
		<dc:creator>wer</dc:creator>
		<pubDate>Fri, 25 Mar 2011 08:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-35880</guid>
		<description>niced</description>
		<content:encoded><![CDATA[<p>niced</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damo</title>
		<link>http://www.askaboutphp.com/58/codeigniter-mixing-segment-based-url-with-querystrings.html/comment-page-1#comment-30262</link>
		<dc:creator>Damo</dc:creator>
		<pubDate>Sun, 16 Jan 2011 02:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.askaboutphp.com/?p=58#comment-30262</guid>
		<description>Thanks, this worked great, no problems! :)</description>
		<content:encoded><![CDATA[<p>Thanks, this worked great, no problems! <img src='http://www.askaboutphp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

