<?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: Mod Rewrite Fun and Games</title>
	<atom:link href="http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/</link>
	<description>PHP, WordPress and Business Ramblings</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:44:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14857</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Wed, 16 Jul 2008 14:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14857</guid>
		<description>Hi Girish,

Have you tried the third code block in the post. It&#039;s almost the same except doesn&#039;t have the [^/] in the code. Not that it should make a difference but that piece of code is exactly what you&#039;re after.</description>
		<content:encoded><![CDATA[<p>Hi Girish,</p>
<p>Have you tried the third code block in the post. It&#039;s almost the same except doesn&#039;t have the [^/] in the code. Not that it should make a difference but that piece of code is exactly what you&#039;re after.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14856</link>
		<dc:creator>Girish</dc:creator>
		<pubDate>Wed, 16 Jul 2008 11:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14856</guid>
		<description>Hello Sarah,
Thanks for the quick reply.

I used below code in my.htacess file but still the same problem if I use http://www.agnisdesigners.com/rewrite/test.php its shows the same url in the browser but if i type http://www.agnisdesigners.com/rewrite/test/
it works.


But How do I convert my all dynamic links to static DO i need change it manually or have right some extra code. If mod is not available I  can use my dynamic code.

Please guide me.

THANKS AGAIN

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Internally rewrite friendly URL requests to script filepath
RewriteRule ^test/$ test.php [L]
#
# Externally redirect client requests for unfriendly URL to friendly URL


RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /test\.php[^/]*\ HTTP/
RewriteRule ^.*$ /test/ [R=301,L]</description>
		<content:encoded><![CDATA[<p>Hello Sarah,<br />
Thanks for the quick reply.</p>
<p>I used below code in my.htacess file but still the same problem if I use <a href="http://www.agnisdesigners.com/rewrite/test.php" rel="nofollow" class="external">http://www.agnisdesigners.com/rewrite/test.php</a> its shows the same url in the browser but if i type <a href="http://www.agnisdesigners.com/rewrite/test/" rel="nofollow" class="external">http://www.agnisdesigners.com/rewrite/test/</a><br />
it works.</p>
<p>But How do I convert my all dynamic links to static DO i need change it manually or have right some extra code. If mod is not available I  can use my dynamic code.</p>
<p>Please guide me.</p>
<p>THANKS AGAIN</p>
<p>Options +FollowSymLinks<br />
RewriteEngine On<br />
RewriteBase /<br />
# Internally rewrite friendly URL requests to script filepath<br />
RewriteRule ^test/$ test.php [L]<br />
#<br />
# Externally redirect client requests for unfriendly URL to friendly URL</p>
<p>RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /test\.php[^/]*\ HTTP/<br />
RewriteRule ^.*$ /test/ [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14851</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Wed, 16 Jul 2008 08:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14851</guid>
		<description>The code you need is in the post above?

&lt;code&gt;RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /test\.php[^/]*\ HTTP/
RewriteRule ^.*$ /test/ [R=301,L]&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The code you need is in the post above?</p>
<p><code>RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /test\.php[^/]*\ HTTP/<br />
RewriteRule ^.*$ /test/ [R=301,L]</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14850</link>
		<dc:creator>Girish</dc:creator>
		<pubDate>Wed, 16 Jul 2008 08:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-14850</guid>
		<description>Hello Friend,

Is there any way If user types test.php in browser we redirect him to /test/ 

Please HELP ME I am newbie in mod_rewrite
Thanks
Girish</description>
		<content:encoded><![CDATA[<p>Hello Friend,</p>
<p>Is there any way If user types test.php in browser we redirect him to /test/ </p>
<p>Please HELP ME I am newbie in mod_rewrite<br />
Thanks<br />
Girish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-12372</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Fri, 07 Dec 2007 16:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-12372</guid>
		<description>Jem, in part I sometimes write these posts so that I know where I can get the code from again!</description>
		<content:encoded><![CDATA[<p>Jem, in part I sometimes write these posts so that I know where I can get the code from again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jem</title>
		<link>http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-12342</link>
		<dc:creator>Jem</dc:creator>
		<pubDate>Thu, 06 Dec 2007 11:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2007/12/05/mod-rewrite-fun-and-games/#comment-12342</guid>
		<description>I think I&#039;ll bookmark this post. Although you&#039;ve not covered anything necessarily new for me, I have a habit of forgetting how to do bits and then putting myself in an infinite loop which makes Firefox cry :(</description>
		<content:encoded><![CDATA[<p>I think I&#039;ll bookmark this post. Although you&#039;ve not covered anything necessarily new for me, I have a habit of forgetting how to do bits and then putting myself in an infinite loop which makes Firefox cry <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
