<?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: Practical Mod_Rewrite for Web Developers</title>
	<atom:link href="http://www.snipe.net/2009/02/practical-mod_rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snipe.net/2009/02/practical-mod_rewrite/</link>
	<description>Bitterness never tasted so sweet</description>
	<lastBuildDate>Mon, 22 Mar 2010 10:38:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Haldun Bayrak</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-7288</link>
		<dc:creator>Haldun Bayrak</dc:creator>
		<pubDate>Sun, 04 Oct 2009 23:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-7288</guid>
		<description>Hi, Thank for the nice prof. information shared with us! I was looking find a way to mask folder and file name seen in the URL after de domain address/ (http://www.test.mysite.com/Folder/subfolder/index.php?modname=xxxx&amp;op=yyyyy). Just to fix and show the static address (http://www.test.mysite.com/)what ever the user is browsing. Can you help...

Best regards</description>
		<content:encoded><![CDATA[<p>Hi, Thank for the nice prof. information shared with us! I was looking find a way to mask folder and file name seen in the URL after de domain address/ (<a href="http://www.test.mysite.com/Folder/subfolder/index.php?modname=xxxx&amp;op=yyyyy" rel="nofollow">http://www.test.mysite.com/Folder/subfolder/index.php?modname=xxxx&amp;op=yyyyy</a>). Just to fix and show the static address (<a href="http://www.test.mysite.com/)what" rel="nofollow">http://www.test.mysite.com/)what</a> ever the user is browsing. Can you help&#8230;</p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-5687</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 19 Aug 2009 00:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-5687</guid>
		<description>Thanks for the article. I&#039;m a mod-rewrite newbie struggling with an issue... 

I have a current URL:
www.mysite.com/blah/page.php?specialcode=123456

I want to redirect all attempts to blah/ to www.mysite.com/new/index.php?page=new-page&amp;specialcode=123456 and want to retain the special code included in the initial URL and write it into the new. 

The site has been re-written in a mini-MVC model and I need to convert traffic going to the old pages to the new model. I can do this in PHP, but want to completely get rid of blah/ and never look at it again.

Any help would be appreciated.

Thanks,
Nick
.-= Nick&#180;s last blog ..&lt;a href=&quot;http://nicholasthomas.wordpress.com/2009/08/13/how-to-use-google-groups-for-businesses-that-are-using-google-apps/&quot; rel=&quot;nofollow&quot;&gt;How to use Google Groups for Businesses that are using Google Apps&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Thanks for the article. I&#8217;m a mod-rewrite newbie struggling with an issue&#8230; </p>
<p>I have a current URL:<br />
<a href="http://www.mysite.com/blah/page.php?specialcode=123456" rel="nofollow">http://www.mysite.com/blah/page.php?specialcode=123456</a></p>
<p>I want to redirect all attempts to blah/ to <a href="http://www.mysite.com/new/index.php?page=new-page&amp;specialcode=123456" rel="nofollow">http://www.mysite.com/new/index.php?page=new-page&amp;specialcode=123456</a> and want to retain the special code included in the initial URL and write it into the new. </p>
<p>The site has been re-written in a mini-MVC model and I need to convert traffic going to the old pages to the new model. I can do this in PHP, but want to completely get rid of blah/ and never look at it again.</p>
<p>Any help would be appreciated.</p>
<p>Thanks,<br />
Nick<br />
.-= Nick&#180;s last blog ..<a href="http://nicholasthomas.wordpress.com/2009/08/13/how-to-use-google-groups-for-businesses-that-are-using-google-apps/" rel="nofollow">How to use Google Groups for Businesses that are using Google Apps</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: augmentedfourth</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-4494</link>
		<dc:creator>augmentedfourth</dc:creator>
		<pubDate>Sun, 19 Apr 2009 13:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-4494</guid>
		<description>Well, I got it working. It turns out that I just needed to set &quot;AllowOverride all&quot; in my VirtualHost configuration. The rule I wrote earlier did work one the module was properly in place.

In addition, I&#039;m also now using mod_rewrite to redirect the root URL to blogspot instead of the  header tag. After some testing, I&#039;ve discovered that the 301 redirect preserves the referrer information when passing the visitor to the blog, so I don&#039;t need the augmentedfourth.com index.htm to keep track of referring links anymore.

Thanks for posting this guide, which was exactly what I needed to finally get me started on this project in the first place!

&lt;abbr&gt;&lt;em&gt;augmentedfourthâ€™s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/augmentedfourth/~3/8BwIN22NGoI/my-brief-adventures-with-appletv.html&quot; rel=&quot;nofollow&quot;&gt;My (brief) adventures with AppleTV&lt;/a&gt;&lt;/em&gt;&lt;/abbr&gt;</description>
		<content:encoded><![CDATA[<p>Well, I got it working. It turns out that I just needed to set &#8220;AllowOverride all&#8221; in my VirtualHost configuration. The rule I wrote earlier did work one the module was properly in place.</p>
<p>In addition, I&#8217;m also now using mod_rewrite to redirect the root URL to blogspot instead of the  header tag. After some testing, I&#8217;ve discovered that the 301 redirect preserves the referrer information when passing the visitor to the blog, so I don&#8217;t need the augmentedfourth.com index.htm to keep track of referring links anymore.</p>
<p>Thanks for posting this guide, which was exactly what I needed to finally get me started on this project in the first place!</p>
<p><abbr><em>augmentedfourthâ€™s last blog post..<a href="http://feedproxy.google.com/~r/augmentedfourth/~3/8BwIN22NGoI/my-brief-adventures-with-appletv.html" rel="nofollow">My (brief) adventures with AppleTV</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: augmentedfourth</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-4192</link>
		<dc:creator>augmentedfourth</dc:creator>
		<pubDate>Wed, 11 Mar 2009 18:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-4192</guid>
		<description>I tried with just the &quot;rewrite without www&quot; rule first; it didn&#039;t seem to work. I guess I just have to troubleshoot mod_rewrite before I can do fun stuff with it...

&lt;abbr&gt;&lt;em&gt;augmentedfourthâ€™s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html&quot; rel=&quot;nofollow&quot;&gt;Geek Code update&lt;/a&gt;&lt;/em&gt;&lt;/abbr&gt;</description>
		<content:encoded><![CDATA[<p>I tried with just the &#8220;rewrite without www&#8221; rule first; it didn&#8217;t seem to work. I guess I just have to troubleshoot mod_rewrite before I can do fun stuff with it&#8230;</p>
<p><abbr><em>augmentedfourthâ€™s last blog post..<a href="http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html" rel="nofollow">Geek Code update</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: augmentedfourth</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-4191</link>
		<dc:creator>augmentedfourth</dc:creator>
		<pubDate>Wed, 11 Mar 2009 18:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-4191</guid>
		<description>I tried with just the &quot;rewrite without www&quot; rule first; it didn&#039;t seem to work. I guess I just have to troubleshoot mod_rewrite before I can do fun stiff with it...

&lt;abbr&gt;&lt;em&gt;augmentedfourthâ€™s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html&quot; rel=&quot;nofollow&quot;&gt;Geek Code update&lt;/a&gt;&lt;/em&gt;&lt;/abbr&gt;</description>
		<content:encoded><![CDATA[<p>I tried with just the &#8220;rewrite without www&#8221; rule first; it didn&#8217;t seem to work. I guess I just have to troubleshoot mod_rewrite before I can do fun stiff with it&#8230;</p>
<p><abbr><em>augmentedfourthâ€™s last blog post..<a href="http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html" rel="nofollow">Geek Code update</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snipe</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-4190</link>
		<dc:creator>snipe</dc:creator>
		<pubDate>Wed, 11 Mar 2009 17:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-4190</guid>
		<description>Hi augmentedfourth - can you set up something simple first to make sure mod_rewrite is working properly?</description>
		<content:encoded><![CDATA[<p>Hi augmentedfourth &#8211; can you set up something simple first to make sure mod_rewrite is working properly?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: augmentedfourth</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-3807</link>
		<dc:creator>augmentedfourth</dc:creator>
		<pubDate>Thu, 05 Mar 2009 23:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-3807</guid>
		<description>I determined that all the blogspot URLs begin with the year, so it made for what seemed like an easy filter. Here&#039;s the full text of the .htaccess in my webroot:

&lt;code&gt;&lt;ifmodule mod_rewrite.c&gt;

RewriteEngine On

RewriteCond %{HTTP_HOST} !^augmentedfourth\.com$ [NC]
RewriteRule ^(.*)$ http://augmentedfourth.com/$1 [R=301]

RewriteCond %{REQUEST_URI} ^\/[0-9][0-9][0-9][0-9]\/.*
RewriteRule ^(.*)$ http://augmentedfourth.blogspot.com/$1 [R=301,L]

&lt;/ifmodule&gt;&lt;/code&gt;

Based on this, going to &quot;http://www.augmentedfourth.com/2008/11/dr-fun.html&quot; should first rewrite without the www and send to blogspot, right? It doesn&#039;t.

The relevant line loading mod_rewrite in my apache2 configs is:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
(I&#039;m running Ubuntu Server Edition.)

&lt;abbr&gt;&lt;em&gt;augmentedfourthâ€™s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html&quot; rel=&quot;nofollow&quot;&gt;Geek Code update&lt;/a&gt;&lt;/em&gt;&lt;/abbr&gt;</description>
		<content:encoded><![CDATA[<p>I determined that all the blogspot URLs begin with the year, so it made for what seemed like an easy filter. Here&#8217;s the full text of the .htaccess in my webroot:</p>
<p><code>&lt;ifmodule mod_rewrite.c&gt;</p>
<p>RewriteEngine On</p>
<p>RewriteCond %{HTTP_HOST} !^augmentedfourth\.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://augmentedfourth.com/$1" rel="nofollow">http://augmentedfourth.com/$1</a> [R=301]</p>
<p>RewriteCond %{REQUEST_URI} ^\/[0-9][0-9][0-9][0-9]\/.*<br />
RewriteRule ^(.*)$ <a href="http://augmentedfourth.blogspot.com/$1" rel="nofollow">http://augmentedfourth.blogspot.com/$1</a> [R=301,L]</p>
<p>&lt;/ifmodule&gt;</code></p>
<p>Based on this, going to &#8220;http://www.augmentedfourth.com/2008/11/dr-fun.html&#8221; should first rewrite without the www and send to blogspot, right? It doesn&#8217;t.</p>
<p>The relevant line loading mod_rewrite in my apache2 configs is:<br />
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so<br />
(I&#8217;m running Ubuntu Server Edition.)</p>
<p><abbr><em>augmentedfourthâ€™s last blog post..<a href="http://feedproxy.google.com/~r/augmentedfourth/~3/RfY9ha2-2FA/geek-code-update.html" rel="nofollow">Geek Code update</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Japh</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-3708</link>
		<dc:creator>Japh</dc:creator>
		<pubDate>Mon, 23 Feb 2009 06:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-3708</guid>
		<description>This is an awesome article, Alison.  Just linked to it in a relevant thread on TheWebSqueeze.com

Questions about mod_rewrite seem to come up quite regularly, and I&#039;ve now found a good explanation to send people to  :)

Thanks!

&lt;abbr&gt;&lt;em&gt;Japhâ€™s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/JaphethThomson/~3/j47Bl0EENno/&quot; rel=&quot;nofollow&quot;&gt;Tracking memory usage&lt;/a&gt;&lt;/em&gt;&lt;/abbr&gt;</description>
		<content:encoded><![CDATA[<p>This is an awesome article, Alison.  Just linked to it in a relevant thread on TheWebSqueeze.com</p>
<p>Questions about mod_rewrite seem to come up quite regularly, and I&#8217;ve now found a good explanation to send people to  <img src='http://www.snipe.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
<p><abbr><em>Japhâ€™s last blog post..<a href="http://feedproxy.google.com/~r/JaphethThomson/~3/j47Bl0EENno/" rel="nofollow">Tracking memory usage</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snipe</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-3692</link>
		<dc:creator>snipe</dc:creator>
		<pubDate>Thu, 19 Feb 2009 07:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-3692</guid>
		<description>It also ate my ifmodule mod_rewrite.c reference... should have read:

&quot;t would look something like this:

ErrorDocument 404 /redirect.php

This would NOT be inside the *ifmodule mod_rewrite.c* statement, since it’s not actually mod_rewrite at all - it’s just a standard apache directive.&quot;</description>
		<content:encoded><![CDATA[<p>It also ate my ifmodule mod_rewrite.c reference&#8230; should have read:</p>
<p>&#8220;t would look something like this:</p>
<p>ErrorDocument 404 /redirect.php</p>
<p>This would NOT be inside the *ifmodule mod_rewrite.c* statement, since it’s not actually mod_rewrite at all &#8211; it’s just a standard apache directive.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snipe</title>
		<link>http://www.snipe.net/2009/02/practical-mod_rewrite/comment-page-1/#comment-3691</link>
		<dc:creator>snipe</dc:creator>
		<pubDate>Thu, 19 Feb 2009 07:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.snipe.net/?p=1481#comment-3691</guid>
		<description>Erg.. sorry for the weird linky stuff... wordpress doesn&#039;t like when you use php tags in the comments.</description>
		<content:encoded><![CDATA[<p>Erg.. sorry for the weird linky stuff&#8230; wordpress doesn&#8217;t like when you use php tags in the comments.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
