<?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: RewriteRule:  How to avoid passing query string when you redirect.</title>
	<atom:link href="http://crazytoon.com/2008/12/11/rewriterule-how-to-avoid-passing-query-string-when-you-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://crazytoon.com/2008/12/11/rewriterule-how-to-avoid-passing-query-string-when-you-redirect/</link>
	<description>Enterprise level solutions, LAMP, Linux, Apache, MySQL, PHP, Perl, Windows, Cache, Optimization</description>
	<lastBuildDate>Mon, 06 Sep 2010 15:32:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Olly</title>
		<link>http://crazytoon.com/2008/12/11/rewriterule-how-to-avoid-passing-query-string-when-you-redirect/comment-page-1/#comment-801</link>
		<dc:creator>Olly</dc:creator>
		<pubDate>Fri, 12 Dec 2008 01:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=162#comment-801</guid>
		<description>you&#039;re doing the right thing (apart from using RedirectMatch, as Brian wrote) with the &#039;?&#039;.
So its supposed to pass the querystring per default, if no &#039;?&#039; is given.

That information is somehow hidden in the documentation:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

I copied that part out of there:

Note: Query String

The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable. You can, however, create URLs in the substitution string, containing a query string part. Simply use a question mark inside the substitution string, to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine a new query string with an old one, use the [QSA] flag.</description>
		<content:encoded><![CDATA[<p>you&#8217;re doing the right thing (apart from using RedirectMatch, as Brian wrote) with the &#8216;?&#8217;.<br />
So its supposed to pass the querystring per default, if no &#8216;?&#8217; is given.</p>
<p>That information is somehow hidden in the documentation:<br />
<a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html" rel="nofollow">http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html</a></p>
<p>I copied that part out of there:</p>
<p>Note: Query String</p>
<p>The Pattern will not be matched against the query string. Instead, you must use a RewriteCond with the %{QUERY_STRING} variable. You can, however, create URLs in the substitution string, containing a query string part. Simply use a question mark inside the substitution string, to indicate that the following text should be re-injected into the query string. When you want to erase an existing query string, end the substitution string with just a question mark. To combine a new query string with an old one, use the [QSA] flag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny Walia</title>
		<link>http://crazytoon.com/2008/12/11/rewriterule-how-to-avoid-passing-query-string-when-you-redirect/comment-page-1/#comment-800</link>
		<dc:creator>Sunny Walia</dc:creator>
		<pubDate>Thu, 11 Dec 2008 19:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=162#comment-800</guid>
		<description>You are right Brian.  I should&#039;ve used this.  I wonder if I would have the same problem.

Thanks.</description>
		<content:encoded><![CDATA[<p>You are right Brian.  I should&#8217;ve used this.  I wonder if I would have the same problem.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Moon</title>
		<link>http://crazytoon.com/2008/12/11/rewriterule-how-to-avoid-passing-query-string-when-you-redirect/comment-page-1/#comment-799</link>
		<dc:creator>Brian Moon</dc:creator>
		<pubDate>Thu, 11 Dec 2008 15:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/?p=162#comment-799</guid>
		<description>For starters, you are using mod_rewrite where it is not needed.  In this case, I would use the RedirectMatch directive.

http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch

mod_rewrite is quite heavy and you should avoid it when there are better, lighter weight directives to be used.</description>
		<content:encoded><![CDATA[<p>For starters, you are using mod_rewrite where it is not needed.  In this case, I would use the RedirectMatch directive.</p>
<p><a href="http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch" rel="nofollow">http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirectmatch</a></p>
<p>mod_rewrite is quite heavy and you should avoid it when there are better, lighter weight directives to be used.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
