<?xml version="1.0" encoding="iso-8859-1"?><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: 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 must visit this geeky girl's weblog!</description>
	<lastBuildDate>Tue, 10 Nov 2009 01:15:00 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James Brown</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/comment-page-1/#comment-269565</link>
		<dc:creator>James Brown</dc:creator>
		<pubDate>Thu, 09 Oct 2008 19:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-269565</guid>
		<description>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>
<pre><code>RewriteEngine on 
RewriteRule ^profile/([A-Za-z0-9]+)/$ /profile.php/$1 
RewriteRule ^profile/([A-Za-z0-9]+)$ /profile.php/$1</code></pre>
<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>
<pre><code>RewriteEngine on 
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1</code></pre>
<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>Options +FollowSymLinks</code><code>So, if you followed both suggestions, your new .htaccess would look like this.</code><pre><code>Options +FollowSymLinks
RewriteEngine on 
RewriteRule ^profile/([A-Za-z0-9]+)/?$ /profile.php/$1</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/comment-page-1/#comment-267914</link>
		<dc:creator>Kelvin</dc:creator>
		<pubDate>Thu, 21 Aug 2008 12:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-267914</guid>
		<description>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!  <img src='http://pure-essence.net/wp-includes/images/smilies/heart.gif' alt=':heart:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daynah</title>
		<link>http://pure-essence.net/2007/06/29/simple-php-path-rewrite/comment-page-1/#comment-23274</link>
		<dc:creator>Daynah</dc:creator>
		<pubDate>Sun, 01 Jul 2007 19:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://pure-essence.net/2007/06/29/simple-php-path-rewrite/#comment-23274</guid>
		<description>Nice tip. :)  Thanks!</description>
		<content:encoded><![CDATA[<p>Nice tip. <img src='http://pure-essence.net/wp-includes/images/smilies/smile.gif' alt=':)' class='wp-smiley' />  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
