<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'Back-references'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Back-references&amp;orTags=0</link><description>Search results matching tag 'Back-references'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: about ReWrite URL</title><link>http://forums.iis.net/p/1151842/1880057.aspx#1880057</link><pubDate>Mon, 22 Sep 2008 20:52:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1880057</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis_70_-_application_request_routing_arr-41</cs:applicationKey><description>&lt;p&gt;The {R:0} contains the entire matched URL path, the {R:1} contains whatever was captured in the pattern within a first capture group. In case of wildcard patterns, each &amp;quot;*&amp;quot; symbol creates a capture group: for example if you had a pattern as &amp;quot;&lt;strong&gt;*bar*.aspx&lt;/strong&gt;&amp;quot; and requested &lt;strong&gt;foobargoo.aspx&lt;/strong&gt;, then {R:0} would contain &amp;quot;&lt;strong&gt;foobargoo.aspx&lt;/strong&gt;&amp;quot;, {R:1} would contain &amp;quot;&lt;strong&gt;foo&lt;/strong&gt;&amp;quot; and {R:2} would contain &amp;quot;&lt;strong&gt;goo&lt;/strong&gt;&amp;quot;. Since you rule has pattern as &amp;quot;&lt;strong&gt;*&lt;/strong&gt;&amp;quot;, the {R:0} and {R:1} would contain exact same values.&lt;/p&gt;
&lt;p&gt;The {R:0} (or {R:1}) in the rewrite rule in the walkthrough is used to preserve the originally requested URL path when forwarding the request to one of the servers in web farm. When you delete {R:0} (or {R:1}) from the substitution url in your rule, you force&amp;nbsp;the rule to not preserve that path, which means that if&amp;nbsp;your browser requests &lt;a href="http://go.sonofvb.net/welcome.png"&gt;http://go.sonofvb.net/welcome.png&lt;/a&gt;, the rule rewrites it to &lt;a href="http://sonofvb/"&gt;http://sonofVB/&lt;/a&gt;, which causes the image&amp;nbsp;to not appear. If&amp;nbsp;you add the {R:1} to the substitution url then the rule will rewrite the request to &lt;a href="http://sonofvb/welcome.png"&gt;http://sonofVB/welcome.png&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: about ReWrite URL</title><link>http://forums.iis.net/p/1151842/1879864.aspx#1879864</link><pubDate>Fri, 19 Sep 2008 16:28:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1879864</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis_70_-_application_request_routing_arr-41</cs:applicationKey><description>&lt;p&gt;Hi, please take a look to the following two articles, they will tell you what it means and how to use it:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/"&gt;http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/&lt;/a&gt;&amp;nbsp;(section &amp;quot;Using back-references in rewrite rules&amp;quot;)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/500/testing-rewrite-rule-patterns/"&gt;http://learn.iis.net/page.aspx/500/testing-rewrite-rule-patterns/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item></channel></rss>