<?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: IIS URL Rewrite 2.0 &#8211; Release to Web</title>
	<atom:link href="http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/</link>
	<description>IIS, FastCGI, PHP and other interesting stuff</description>
	<lastBuildDate>Sat, 12 May 2012 03:15:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: eddy</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-7771</link>
		<dc:creator>eddy</dc:creator>
		<pubDate>Tue, 18 Jan 2011 13:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-7771</guid>
		<description>Hello ruslan,

I am trying to convert my site with seourl using urlrewrite 2.0.. 
Everything works in local system, but in the server, It is showing up error in the webconfig file, The configuration section &#039;outboundRules&#039; cannot be read missing section declaration. The part of the webconfig is posted.

&lt;rewrite&gt;
            &lt;rules&gt;
                &lt;rule name=&quot;RedirectUserFriendlyURL1&quot; stopProcessing=&quot;true&quot;&gt;
                    &lt;match url=&quot;^tutorial\.aspx$&quot; /&gt;
                    &lt;conditions&gt;
                        &lt;add input=&quot;{REQUEST_METHOD}&quot; pattern=&quot;^POST$&quot; negate=&quot;true&quot; /&gt;
                        &lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;^id=([^=&amp;]+)&amp;title=([^=&amp;]+)$&quot; /&gt;
                    &lt;/conditions&gt;
                    &lt;action type=&quot;Redirect&quot; url=&quot;tutorial/{C:1}/{C:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;RewriteUserFriendlyURL1&quot; stopProcessing=&quot;true&quot;&gt;
                    &lt;match url=&quot;^tutorial/([^/]+)/([^/]+)/?$&quot; /&gt;
                    &lt;conditions&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;
                    &lt;/conditions&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;tutorial.aspx?id={R:1}&amp;title={R:2}&quot; /&gt;
                &lt;/rule&gt;
            &lt;/rules&gt;
            &lt;outboundRules&gt;
                &lt;rule name=&quot;OutboundRewriteUserFriendlyURL1&quot; preCondition=&quot;ResponseIsHtml1&quot;&gt;
                    &lt;match filterByTags=&quot;A, Form, Img&quot; pattern=&quot;^(.*/)tutorial\.aspx\?id=([^=&amp;]+)&amp;(?:amp;)?title=([^=&amp;]+)$&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; value=&quot;{R:1}tutorial/{R:2}/{R:3}/&quot; /&gt;
                &lt;/rule&gt;
            &lt;/outboundRules&gt;
        &lt;/rewrite&gt;

And one more, When i post back, the query strings are appended 
eventhough i had disabled append querystring</description>
		<content:encoded><![CDATA[<p>Hello ruslan,</p>
<p>I am trying to convert my site with seourl using urlrewrite 2.0..<br />
Everything works in local system, but in the server, It is showing up error in the webconfig file, The configuration section &#8216;outboundRules&#8217; cannot be read missing section declaration. The part of the webconfig is posted.</p>
<p>&lt;rewrite&gt;<br />
            &lt;rules&gt;<br />
                &lt;rule name=&quot;RedirectUserFriendlyURL1&quot; stopProcessing=&quot;true&quot;&gt;<br />
                    &lt;match url=&quot;^tutorial\.aspx$&quot; /&gt;<br />
                    &lt;conditions&gt;<br />
                        &lt;add input=&quot;{REQUEST_METHOD}&quot; pattern=&quot;^POST$&quot; negate=&quot;true&quot; /&gt;<br />
                        &lt;add input=&quot;{QUERY_STRING}&quot; pattern=&quot;^id=([^=&amp;amp;]+)&amp;amp;title=([^=&amp;amp;]+)$&quot; /&gt;<br />
                    &lt;/conditions&gt;<br />
                    &lt;action type=&quot;Redirect&quot; url=&quot;tutorial/{C:1}/{C:2}&quot; appendQueryString=&quot;false&quot; /&gt;<br />
                &lt;/rule&gt;<br />
                &lt;rule name=&quot;RewriteUserFriendlyURL1&quot; stopProcessing=&quot;true&quot;&gt;<br />
                    &lt;match url=&quot;^tutorial/([^/]+)/([^/]+)/?$&quot; /&gt;<br />
                    &lt;conditions&gt;<br />
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;<br />
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;<br />
                    &lt;/conditions&gt;<br />
                    &lt;action type=&quot;Rewrite&quot; url=&quot;tutorial.aspx?id={R:1}&amp;amp;title={R:2}&quot; /&gt;<br />
                &lt;/rule&gt;<br />
            &lt;/rules&gt;<br />
            &lt;outboundRules&gt;<br />
                &lt;rule name=&quot;OutboundRewriteUserFriendlyURL1&quot; preCondition=&quot;ResponseIsHtml1&quot;&gt;<br />
                    &lt;match filterByTags=&quot;A, Form, Img&quot; pattern=&quot;^(.*/)tutorial\.aspx\?id=([^=&amp;amp;]+)&amp;amp;(?:amp;)?title=([^=&amp;amp;]+)$&quot; /&gt;<br />
                    &lt;action type=&quot;Rewrite&quot; value=&quot;{R:1}tutorial/{R:2}/{R:3}/&quot; /&gt;<br />
                &lt;/rule&gt;<br />
            &lt;/outboundRules&gt;<br />
        &lt;/rewrite&gt;</p>
<p>And one more, When i post back, the query strings are appended<br />
eventhough i had disabled append querystring</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2801</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 19 Nov 2010 03:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2801</guid>
		<description>I am using URL Rewrite 2.0 and have found that when using it as a reverse proxy it will automatically alter the response location header returned from a from an internal web site. I would like to disable this since the internal web site returns an internet facing location URL on the 301 redirect. How do I disable the automatic location response header?</description>
		<content:encoded><![CDATA[<p>I am using URL Rewrite 2.0 and have found that when using it as a reverse proxy it will automatically alter the response location header returned from a from an internal web site. I would like to disable this since the internal web site returns an internet facing location URL on the 301 redirect. How do I disable the automatic location response header?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2557</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Fri, 01 Oct 2010 15:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2557</guid>
		<description>Thanks for the reply - really appreciate it.  I&#039;m going to look at rewriting the pattern - it&#039;s a legacy pattern from the days of using ISAPI Rewrite, so it could definitely do with a rewrite.   I&#039;ll rollback to 1.1 while i investigate the pattern - I want to use 2.0 to modify response headers, so i need to get this working for 2.0.   

Thanks again for the response.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply &#8211; really appreciate it.  I&#8217;m going to look at rewriting the pattern &#8211; it&#8217;s a legacy pattern from the days of using ISAPI Rewrite, so it could definitely do with a rewrite.   I&#8217;ll rollback to 1.1 while i investigate the pattern &#8211; I want to use 2.0 to modify response headers, so i need to get this working for 2.0.   </p>
<p>Thanks again for the response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruslany</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2517</link>
		<dc:creator>ruslany</dc:creator>
		<pubDate>Tue, 28 Sep 2010 04:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2517</guid>
		<description>Hi Ali,

I am not aware of the differences between regex pattern matching between 1.1 and 2.0, but there might be some differences. URL rewrite uses the standard visual c++ regex library, which has had many bug fixes since v1.1 of URL rewrite was released.

However, looking at the pattern example I do not understand why it has to be so complex. It tries to match the query string, which URL rewrite never uses as an input to the rewrite rule pattern. I would suggest simplifying the pattern. 

If you really have to have this pattern and do not need any of the URL rewrite 2.0 features (e.g. outbound url rewriting, setting of server variables, extensibilty) then you can continue using URL rewrite 1.1 - it is of a solid quality and has the same performance as v2.0.</description>
		<content:encoded><![CDATA[<p>Hi Ali,</p>
<p>I am not aware of the differences between regex pattern matching between 1.1 and 2.0, but there might be some differences. URL rewrite uses the standard visual c++ regex library, which has had many bug fixes since v1.1 of URL rewrite was released.</p>
<p>However, looking at the pattern example I do not understand why it has to be so complex. It tries to match the query string, which URL rewrite never uses as an input to the rewrite rule pattern. I would suggest simplifying the pattern. </p>
<p>If you really have to have this pattern and do not need any of the URL rewrite 2.0 features (e.g. outbound url rewriting, setting of server variables, extensibilty) then you can continue using URL rewrite 1.1 &#8211; it is of a solid quality and has the same performance as v2.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2513</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Mon, 27 Sep 2010 08:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2513</guid>
		<description>Hi ruslany - I was wondering if you&#039;re aware of any differences in the Regex parsing/matching between 1.x and 2.0.   I have a scenario which looks like there are differences as the same regex is matched in 1.1 and not matched in 2.0 for the same input.  

I&#039;ve posted on iis.net (http://forums.iis.net/t/1171510.aspx) but haven&#039;t had much luck getting to the bottom of the issue.</description>
		<content:encoded><![CDATA[<p>Hi ruslany &#8211; I was wondering if you&#8217;re aware of any differences in the Regex parsing/matching between 1.x and 2.0.   I have a scenario which looks like there are differences as the same regex is matched in 1.1 and not matched in 2.0 for the same input.  </p>
<p>I&#8217;ve posted on iis.net (<a href="http://forums.iis.net/t/1171510.aspx" rel="nofollow">http://forums.iis.net/t/1171510.aspx</a>) but haven&#8217;t had much luck getting to the bottom of the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Andreou</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2415</link>
		<dc:creator>Andreas Andreou</dc:creator>
		<pubDate>Mon, 06 Sep 2010 02:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2415</guid>
		<description>thx ruslany
I couldn&#039;t find any related documentation online - even the xml schema for the rules would have helped! So, your help is much appreciated.</description>
		<content:encoded><![CDATA[<p>thx ruslany<br />
I couldn&#8217;t find any related documentation online &#8211; even the xml schema for the rules would have helped! So, your help is much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruslany</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2414</link>
		<dc:creator>ruslany</dc:creator>
		<pubDate>Mon, 06 Sep 2010 01:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2414</guid>
		<description>Hi Andreas,

Yes, it is possible. In the subfolder web.config file add the &lt;clear/&gt; elements at the beginning of the &lt;rules&gt; section. That way all the rules from the parent level will be removed and then you can add your subfolder rules.</description>
		<content:encoded><![CDATA[<p>Hi Andreas,</p>
<p>Yes, it is possible. In the subfolder web.config file add the &lt;clear/&gt; elements at the beginning of the &lt;rules&gt; section. That way all the rules from the parent level will be removed and then you can add your subfolder rules.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Andreou</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2413</link>
		<dc:creator>Andreas Andreou</dc:creator>
		<pubDate>Mon, 06 Sep 2010 00:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2413</guid>
		<description>Hi,
do you know if it&#039;s possible for a rule in a subfolder (i.e. defined in somefolder/web.config) to take precedence over a rule defined in the root folder (i.e. in web.config)?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
do you know if it&#8217;s possible for a rule in a subfolder (i.e. defined in somefolder/web.config) to take precedence over a rule defined in the root folder (i.e. in web.config)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruslany</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2338</link>
		<dc:creator>ruslany</dc:creator>
		<pubDate>Fri, 27 Aug 2010 20:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2338</guid>
		<description>Hi Wright,

One option I can think of is not to use global rules for reverse proxy. The reverse proxy can be implemented with normal distributed rules in web.config files. 

If you do that then I think you should be able to write an HTTP module that gets to the request before URL rewrite.</description>
		<content:encoded><![CDATA[<p>Hi Wright,</p>
<p>One option I can think of is not to use global rules for reverse proxy. The reverse proxy can be implemented with normal distributed rules in web.config files. </p>
<p>If you do that then I think you should be able to write an HTTP module that gets to the request before URL rewrite.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruslany</title>
		<link>http://ruslany.net/2010/03/iis-url-rewrite-2-0-release-to-web/comment-page-1/#comment-2337</link>
		<dc:creator>ruslany</dc:creator>
		<pubDate>Fri, 27 Aug 2010 20:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://ruslany.net/?p=695#comment-2337</guid>
		<description>Hi Raman,

I think that for the response headers to show content-encoding, the request should contain header &quot;accept-encoding&quot;, e.g.

Accept-Encoding: compress, gzip

You can try to make request with this header by using WFetch.</description>
		<content:encoded><![CDATA[<p>Hi Raman,</p>
<p>I think that for the response headers to show content-encoding, the request should contain header &#8220;accept-encoding&#8221;, e.g.</p>
<p>Accept-Encoding: compress, gzip</p>
<p>You can try to make request with this header by using WFetch.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

