<?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: How to use mod_rewrite with .htaccess (Part 2)</title>
	<atom:link href="http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2</link>
	<description>For Web Developers</description>
	<lastBuildDate>Fri, 13 Aug 2010 16:53:26 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: MIke</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1008</link>
		<dc:creator>MIke</dc:creator>
		<pubDate>Sat, 03 Nov 2007 00:23:40 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1008</guid>
		<description>Hey I was wondering if you could help me out with something. I have been coding a site the last couple of months and have been doing this

http://page/2007/02/28/page_title

I use php to break the url into an array and use those in php to access my mysql database etc.

I currently use the following as an htaccess entry this particular page

#this page
RewriteRule ^page/(.*) page.php?user=$1

Now if there are other php pages that I need to use the the url in an array I have to write the same thing

#new_blog_entry
RewriteRule ^otherpage/(.*) otherpage.php?user=$1

Is there a way to just have one entry for all pages in my site? As it its I have 20 entries in my .htaccess and it dosen&#039;t look like i&#039;m doing it right.

Oh one more thing. I had gotten your

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/.]+)$ index.php?cmd=$1 [L]

entry to work on one occasion but since I made some changes to my site It hasn&#039;t worked anymore. I include a page in my index file that queries my mysql database for the url right after the mysite.com/thisurl and if it is found it redirect to the users profile. Any ideas how I might fix this? Thanks alot.</description>
		<content:encoded><![CDATA[<p>Hey I was wondering if you could help me out with something. I have been coding a site the last couple of months and have been doing this</p>
<p><a href="http://page/2007/02/28/page_title" rel="nofollow">http://page/2007/02/28/page_title</a></p>
<p>I use php to break the url into an array and use those in php to access my mysql database etc.</p>
<p>I currently use the following as an htaccess entry this particular page</p>
<p>#this page<br />
RewriteRule ^page/(.*) page.php?user=$1</p>
<p>Now if there are other php pages that I need to use the the url in an array I have to write the same thing</p>
<p>#new_blog_entry<br />
RewriteRule ^otherpage/(.*) otherpage.php?user=$1</p>
<p>Is there a way to just have one entry for all pages in my site? As it its I have 20 entries in my .htaccess and it dosen&#8217;t look like i&#8217;m doing it right.</p>
<p>Oh one more thing. I had gotten your</p>
<p>RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^([^/.]+)$ index.php?cmd=$1 [L]</p>
<p>entry to work on one occasion but since I made some changes to my site It hasn&#8217;t worked anymore. I include a page in my index file that queries my mysql database for the url right after the mysite.com/thisurl and if it is found it redirect to the users profile. Any ideas how I might fix this? Thanks alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1009</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 10 Jul 2007 18:44:30 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1009</guid>
		<description>Sweet thanks a million. I was also searching for a way to do the mysite/myprofile type urls for the longest time.</description>
		<content:encoded><![CDATA[<p>Sweet thanks a million. I was also searching for a way to do the mysite/myprofile type urls for the longest time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hanren</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1005</link>
		<dc:creator>hanren</dc:creator>
		<pubDate>Sat, 25 Nov 2006 21:08:11 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1005</guid>
		<description>plenty of people at the joomla community had these
&quot;search engine friendlyW problems

your article had just solved mine

thanks a lot .. been having these problems
for over the week

thankyou again you really saved my day</description>
		<content:encoded><![CDATA[<p>plenty of people at the joomla community had these<br />
&#8220;search engine friendlyW problems</p>
<p>your article had just solved mine</p>
<p>thanks a lot .. been having these problems<br />
for over the week</p>
<p>thankyou again you really saved my day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1006</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Thu, 16 Nov 2006 20:43:11 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1006</guid>
		<description>WOW! Thanks for the help. I&#039;ve banged my head against the wall for a couple hours and came up empty. Your code did the trick.

Thanks much!!!!</description>
		<content:encoded><![CDATA[<p>WOW! Thanks for the help. I&#8217;ve banged my head against the wall for a couple hours and came up empty. Your code did the trick.</p>
<p>Thanks much!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ray</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1007</link>
		<dc:creator>Ray</dc:creator>
		<pubDate>Tue, 17 Oct 2006 16:58:18 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1007</guid>
		<description>Holy hell mate....

I have been searching for this solution for about 3 days!! Thanks a million, I owe you...</description>
		<content:encoded><![CDATA[<p>Holy hell mate&#8230;.</p>
<p>I have been searching for this solution for about 3 days!! Thanks a million, I owe you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WaxJelly &#187; Blog Archive &#187; How to use mod_rewrite with .htaccess (Part 1)</title>
		<link>http://www.crainbandy.com/apache/how-to-use-mod_rewrite-with-htaccess-part-2/comment-page-1#comment-1004</link>
		<dc:creator>WaxJelly &#187; Blog Archive &#187; How to use mod_rewrite with .htaccess (Part 1)</dc:creator>
		<pubDate>Wed, 23 Aug 2006 09:33:13 +0000</pubDate>
		<guid isPermaLink="false">https://crainbandy.com/2006/08/22/how-to-use-mod_rewrite-with-htaccess-part-2/#comment-1004</guid>
		<description>[...] Update - I wrote the continuation to this article here &#8220;How to use mod_rewrite with .htaccess (Part 2)&#8221; go check it out after you&#8217;re done with this one. [...]</description>
		<content:encoded><![CDATA[<div style="">
<p>[...] Update &#8211; I wrote the continuation to this article here &#8220;How to use mod_rewrite with .htaccess (Part 2)&#8221; go check it out after you&#8217;re done with this one. [...]</p>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>
