<?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 'rewrite'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=rewrite&amp;orTags=0</link><description>Search results matching tag 'rewrite'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Force site URL</title><link>http://forums.iis.net/p/1162059/1923111.aspx#1923111</link><pubDate>Mon, 02 Nov 2009 18:19:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923111</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis_7_-_aspnet_administration-41</cs:applicationKey><description>&lt;p&gt;URL Rewrite is cache friendly, meaning that for frequently hit URLs the redirection will happen really fast, a hashtable look up and then a native&amp;nbsp;Redirect call. Expect great performance.&lt;/p&gt;</description></item><item><title>Re: IIS7 rewrite to insert a new vdir</title><link>http://forums.iis.net/p/1162118/1922402.aspx#1922402</link><pubDate>Tue, 27 Oct 2009 22:43:18 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922402</guid><dc:creator>iis9002</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Have answer for myself&lt;/p&gt;
&lt;p&gt;&amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;temp/{PATH_INFO}&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;But weired thing is if I go to &lt;a href="http://foo.com/anypath"&gt;http://foo.com/anypath&lt;/a&gt;, sometimes, it is correct, but sometimes it redirects to &lt;a href="http://foo.com/temp/anypath"&gt;http://foo.com/temp/anypath&lt;/a&gt;, especially after I clear cache. Could this be a bug in IIS or am I missing sth here&lt;/p&gt;</description></item><item><title>IIS7 rewrite to insert a new vdir</title><link>http://forums.iis.net/p/1162118/1922390.aspx#1922390</link><pubDate>Tue, 27 Oct 2009 20:54:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1922390</guid><dc:creator>iis9002</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hey, assume I have a site &lt;a href="http://foo.com/anypath/"&gt;http://foo.com/anypath/&lt;/a&gt;..., how do I rewrite it to &lt;a href="http://foo.com/temp/path"&gt;http://foo.com/temp/anypath&lt;/a&gt;...&lt;/p&gt;
&lt;p&gt;Here is the rule I have for now. &lt;/p&gt;
&lt;p&gt;&amp;lt;rule name=&amp;quot;test&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;^(?!.*temp).*$&amp;quot; /&amp;gt;&amp;lt;!--&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;/temp/&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;Basically, I need to insert &amp;quot;temp&amp;quot; right after&amp;nbsp;the host while preserving everything else (both relative path and parameter). I can not hardcode &amp;quot;anypath&amp;quot;, as it is unknown to me; also. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Why are my relative paths different when I request the file name opposed to directory? </title><link>http://forums.iis.net/p/1161589/1919970.aspx#1919970</link><pubDate>Thu, 08 Oct 2009 11:46:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919970</guid><dc:creator>mcdotnet</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I am rewriting the url &lt;a href="http://www.tworiverstaines.co.uk/" rel="nofollow"&gt;&lt;font color="#4a6b82"&gt;http://www.tworiverstaines.co.uk&lt;/font&gt;&lt;/a&gt; to &lt;a href="http://www.tworiverstaines.co.uk/TwoRivers/" rel="nofollow"&gt;&lt;font color="#4a6b82"&gt;http://www.tworiverstaines.co.uk/TwoRivers/&lt;/font&gt;&lt;/a&gt;&amp;nbsp;using this rule:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rule name=&amp;quot;tworiverstaines.co.uk&amp;quot; stopProcessing=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&amp;quot;(.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditions logicalGrouping=&amp;quot;MatchAll&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{PATH_INFO}&amp;quot; negate=&amp;quot;true&amp;quot; pattern=&amp;quot;^.?TwoRivers/.*&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^www.tworiverstaines.co.uk$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;TwoRivers/{PATH_INFO}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rule&amp;gt;&lt;/p&gt;
&lt;p&gt;I am using the tilde ~&amp;nbsp;in all the relative links for my web controls.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I navigate to &lt;a href="http://www.tworiverstaines.co.uk/"&gt;http://www.tworiverstaines.co.uk/&lt;/a&gt;&amp;nbsp;all the paths in the default document are:&lt;br /&gt;&lt;span class="HTML_ATR"&gt;&lt;font color="#ff0000"&gt;href&lt;/font&gt;&lt;/span&gt;&lt;font color="#0000ff"&gt;=&lt;span class="HTML_VAL"&gt;&amp;quot;Filename.aspx&amp;quot;&lt;/span&gt;&lt;/font&gt; which is what I want.&lt;br /&gt;&lt;br /&gt;When I navigate directly to the file &lt;a href="http://www.tworiverstaines.co.uk/Default.aspx"&gt;http://www.tworiverstaines.co.uk/Default.aspx&lt;/a&gt;&amp;nbsp;all the paths are: &lt;span class="HTML_ATR"&gt;&lt;font color="#ff0000"&gt;&lt;span class="HTML_ATR"&gt;href&lt;/span&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;=&lt;span class="HTML_VAL"&gt;&amp;quot;TwoRivers/Filename.aspx&amp;quot; &lt;/span&gt;&lt;/font&gt;&lt;/span&gt;which results in the subfolder being shown in the browser address bar when&amp;nbsp;clicking this&amp;nbsp;link,&amp;nbsp;which I do not want.&lt;/p&gt;
&lt;p&gt;Does anyone know why the paths change?&lt;/p&gt;</description></item><item><title>Subdomain Rewrite?</title><link>http://forums.iis.net/p/1161051/1917613.aspx#1917613</link><pubDate>Sun, 20 Sep 2009 18:49:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917613</guid><dc:creator>astralis</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;How do I do the following rewrite (not redirect, just in case)? &lt;/p&gt;
&lt;p&gt;mysubdomain.domain.com (mysubdomain should be wildcard)&lt;br /&gt;mysubdomain.domain.com/mysubdomain &lt;/p&gt;
&lt;p&gt;I just realized I need the following exceptions to the rule:&lt;/p&gt;
&lt;p&gt;www.domain.com&lt;br /&gt;mail.domain.com&lt;br /&gt;&lt;br /&gt;The user will see: mysubdomain.domain.com in the address bar. &lt;/p&gt;
&lt;p&gt;What happens if I have additional rewrite rules? &lt;/p&gt;
&lt;p&gt;mysubdomain.domain.com/a/1224/this-is-an-article rewrites to: &lt;br /&gt;mysubdomain.domain.com/article.asp?id=1224 &lt;/p&gt;
&lt;p&gt;Thanks in advance! &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Long live Classic ASP!&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: URL Rewrite scenario - need the best solution</title><link>http://forums.iis.net/p/1160432/1915053.aspx#1915053</link><pubDate>Fri, 28 Aug 2009 18:43:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915053</guid><dc:creator>philsidari</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;proxy1 and web1 are not folders, but server names. Can a rewrite map accomodate this scenario? How would you change the map above?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, do I need to be using URL Rewrite v1.1? How can I tell if I only have v1.0 installed?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;
&lt;p&gt;-Phil&lt;/p&gt;</description></item><item><title>ARR to do split A/B testing using pages, not servers</title><link>http://forums.iis.net/p/1160099/1913796.aspx#1913796</link><pubDate>Mon, 17 Aug 2009 16:25:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1913796</guid><dc:creator>robh71</dc:creator><cs:applicationKey>iis_70_-_application_request_routing_arr-41</cs:applicationKey><description>&lt;p&gt;I have an SSL enabled web site and I would like to do split A/B testing for evenly distributed testing across two pages.&lt;/p&gt;&lt;p&gt;&amp;nbsp;For example,&lt;/p&gt;&lt;p&gt;I want half of the users to see:&lt;/p&gt;&lt;p&gt;https://www.mysite.com/DefaultA.aspx&lt;/p&gt;&lt;p&gt;and the other half to see:&lt;/p&gt;&lt;p&gt; https://www.mysite.com/DefaultB.aspx &lt;/p&gt;&lt;p&gt;I am running IIS7 on Windows 2008 Web Edition with UrlRewrite installed.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I looked at the load balancing howto and it was working with 4 servers, I only have one, but I believe that this should be possible using ARR.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;Rob&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: RewriteMap Lookup by Value?</title><link>http://forums.iis.net/p/1159697/1912152.aspx#1912152</link><pubDate>Fri, 31 Jul 2009 04:49:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1912152</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you really need a rewrite map? It looks like a rule that matches search/*/* and rewrites to search.aspx?val1={R:1}&amp;amp;val2={R:2} and another one for redirection that matches search.aspx?val1=*&amp;amp;val2=* and redirects to /search/{R:1}/{R:2} could do the trick.&lt;/p&gt;
&lt;p&gt;By the way, if in the&amp;nbsp;URL Rewrite User Interface&amp;nbsp;you use the User Friendly URL template, it has a check box that helps you to generate also the redirect rule for the rewrite rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/497/user-friendly-url---rule-template/"&gt;http://learn.iis.net/page.aspx/497/user-friendly-url---rule-template/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;</description></item><item><title>URL Rewrite module not working, even with templates</title><link>http://forums.iis.net/p/1159203/1910118.aspx#1910118</link><pubDate>Mon, 13 Jul 2009 14:53:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910118</guid><dc:creator>mr baldman</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I cannot get the URL rewriting module to work on my local PC (vista x86)&lt;br /&gt;&lt;br /&gt;i set up a new rule using the &amp;#39;user friendly url&amp;#39; template.&lt;br /&gt;&lt;br /&gt;a picture rather than 1000 words....&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.sk8loc8.com/rewrite_step1.jpg" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;so now that is setup if i request &amp;#39;localhost/iisrewriteurl/content/5 i should see my content.aspx page.&lt;/p&gt;&lt;p&gt;and the settings page, which i have not changed in any way...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.sk8loc8.com/rewrite_step2.jpg" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;nope...&lt;br /&gt;&lt;br /&gt;Error Summary HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. &lt;br /&gt;Detailed Error Information &lt;br /&gt;Module IIS Web Core &lt;br /&gt;Notification MapRequestHandler &lt;br /&gt;Handler StaticFile &lt;br /&gt;Error Code 0x80070002 &lt;br /&gt;Requested URL IISRewriteURL/content/5/ &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When i go back into the rule itself and test the patterns that IIS made for me, they do not work..(see attached picture)&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.sk8loc8.com/rewrite_step3.jpg" alt="" /&gt;&lt;br /&gt;&lt;br /&gt;I have tried adding a wildcard script map under the handler mappings section but this makes no difference.&lt;br /&gt;&lt;br /&gt;Has anyone seen this type of behaviour before? Or am i missing something very simple?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>IIS 7 URL Rewrite Help needed</title><link>http://forums.iis.net/p/1157858/1904631.aspx#1904631</link><pubDate>Sun, 24 May 2009 10:37:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904631</guid><dc:creator>fiaz110</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am new to IIS 7. Previously I have done the URL Rewriting using Helicon Tech&amp;#39;s ISAPI Rewrite and IONIC ISAPI Rewrite Filter. The url and its rewrite is written below.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/tree-service/austin/&lt;/strong&gt; should be written to &lt;strong&gt;/request.asp?city=austin&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If anybody can provide me the complete sample web.config then I will be extremely greateful to you.&lt;/p&gt;
&lt;p&gt;Thanking in advance,&lt;br /&gt;Fiaz&lt;/p&gt;</description></item></channel></rss>