<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Simple PHP URL rewrite</title>
	<atom:link href="http://pure-essence.net/2007/06/29/simple-php-path-rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/</link>
	<description>You have to visit this geeky girl&#039;s blog.</description>
	<lastBuildDate>Sun, 20 May 2012 11:14:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: webdevelopmentpunjab</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-19504</link>
		<dc:creator><![CDATA[webdevelopmentpunjab]]></dc:creator>
		<pubDate>Tue, 27 Sep 2011 10:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/#comment-19504</guid>
		<description><![CDATA[i am currently use zazavi 1.2.1 version.
i have problem with URL mod_rewrite

original: 
http://domain.com/view-content/2/link.html

i want this e.g.:
http://domain.com/link.html

WHY CHANGE ?
point is :- 1st this is save from database injection and hacker.. and SEO Friendly URL
because these  number  are page id in db.

any buddy help me to solve my problem]]></description>
		<content:encoded><![CDATA[<p>i am currently use zazavi 1.2.1 version.<br />
i have problem with URL mod_rewrite</p>
<p>original:<br />
<a href="http://domain.com/view-content/2/link.html" rel="nofollow">http://domain.com/view-content/2/link.html</a></p>
<p>i want this e.g.:<br />
<a href="http://domain.com/link.html" rel="nofollow">http://domain.com/link.html</a></p>
<p>WHY CHANGE ?<br />
point is :- 1st this is save from database injection and hacker.. and SEO Friendly URL<br />
because these  number  are page id in db.</p>
<p>any buddy help me to solve my problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kamlesh</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-19050</link>
		<dc:creator><![CDATA[kamlesh]]></dc:creator>
		<pubDate>Wed, 06 Jul 2011 10:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/#comment-19050</guid>
		<description><![CDATA[i have created rule for following url
http://www.amg.biz/garavigujarat as below

RewriteEngine On
RewriteBase /

DirectoryIndex index.php default.php Default.php

RewriteCond %{QUERY_STRING} ^(.*)
RewriteRule ^garavigujarat$ http://www.amg.biz/index.php?page=Publications&amp;id=2

but instead of showing original url it&#039;s showing new url. so i think it&#039;s redirecting instead of rewriting url.

can you please help me.]]></description>
		<content:encoded><![CDATA[<p>i have created rule for following url<br />
<a href="http://www.amg.biz/garavigujarat" rel="nofollow">http://www.amg.biz/garavigujarat</a> as below</p>
<p>RewriteEngine On<br />
RewriteBase /</p>
<p>DirectoryIndex index.php default.php Default.php</p>
<p>RewriteCond %{QUERY_STRING} ^(.*)<br />
RewriteRule ^garavigujarat$ <a href="http://www.amg.biz/index.php?page=Publications&#038;id=2" rel="nofollow">http://www.amg.biz/index.php?page=Publications&#038;id=2</a></p>
<p>but instead of showing original url it&#8217;s showing new url. so i think it&#8217;s redirecting instead of rewriting url.</p>
<p>can you please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Brown</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-17541</link>
		<dc:creator><![CDATA[James Brown]]></dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/#comment-17541</guid>
		<description><![CDATA[Some comments/suggestions on your URL rewrite code.  You have duplicates in the list for with and without a slash.

&lt;code&gt;
RewriteEngine on
RewriteRule ^profile/([A-Za-z0-9]+)/$ /profile.php/$1
RewriteRule ^profile/([A-Za-z0-9]+)$ /profile.php/$1
&lt;/code&gt;

It is easier if you simply make the slash optional using a regex question mark following the slash.  This eliminates the need for two rules to do the same thing.

&lt;code&gt;
RewriteEngine on
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1
&lt;/code&gt;

Also, it may be necessary to enable the FollowSymLinks option to get the server to actually do the rewrite.  You would add the following to the top of the .htaccess to be sure it was enabled.

&lt;code&gt;
Options +FollowSymLinks
&lt;/code&gt;&lt;code&gt;

So, if you followed both suggestions, your new .htaccess would look like this.

&lt;/code&gt;&lt;code&gt;
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Some comments/suggestions on your URL rewrite code.  You have duplicates in the list for with and without a slash.</p>
<p><code><br />
RewriteEngine on<br />
RewriteRule ^profile/([A-Za-z0-9]+)/$ /profile.php/$1<br />
RewriteRule ^profile/([A-Za-z0-9]+)$ /profile.php/$1<br />
</code></p>
<p>It is easier if you simply make the slash optional using a regex question mark following the slash.  This eliminates the need for two rules to do the same thing.</p>
<p><code><br />
RewriteEngine on<br />
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1<br />
</code></p>
<p>Also, it may be necessary to enable the FollowSymLinks option to get the server to actually do the rewrite.  You would add the following to the top of the .htaccess to be sure it was enabled.</p>
<p><code><br />
Options +FollowSymLinks<br />
</code><code></p>
<p>So, if you followed both suggestions, your new .htaccess would look like this.</p>
<p></code><code><br />
Options +FollowSymLinks<br />
RewriteEngine on<br />
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-17540</link>
		<dc:creator><![CDATA[Kelvin]]></dc:creator>
		<pubDate>Thu, 21 Aug 2008 12:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/#comment-17540</guid>
		<description><![CDATA[I&#039;m about to develop a php based website and I found your thread.
Thank god that&#039;s exactly what I&#039;m looking for!  :heart:]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m about to develop a php based website and I found your thread.<br />
Thank god that&#8217;s exactly what I&#8217;m looking for!  :heart:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daynah</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-17539</link>
		<dc:creator><![CDATA[Daynah]]></dc:creator>
		<pubDate>Sun, 01 Jul 2007 19:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://regretless.com/2007/06/29/simple-php-path-rewrite/#comment-17539</guid>
		<description><![CDATA[Nice tip. :)  Thanks!]]></description>
		<content:encoded><![CDATA[<p>Nice tip. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

