<?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 'RewriteModule'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=RewriteModule&amp;orTags=0</link><description>Search results matching tag 'RewriteModule'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>how to deal with &amp;quot;?&amp;quot; characters in match for rule</title><link>http://forums.iis.net/p/1163200/1927172.aspx#1927172</link><pubDate>Fri, 04 Dec 2009 19:22:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1927172</guid><dc:creator>xeonix</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;hello everyone!&lt;/p&gt;&lt;p&gt;i&amp;#39;m on Windows 2008 Web Server x64, IIS7 + Url Rewrite 1.1, RequestEncoding is UTF-8&lt;br /&gt;&lt;/p&gt;&lt;p&gt;so i need to rewrite urls:&lt;/p&gt;&lt;p&gt;http://mydomain.com/Search?qweqweqweqwe&lt;/p&gt;&lt;p&gt;to&lt;/p&gt;&lt;p&gt;http://mydomain.com/Search.aspx?q=qweqweqweqwe.&lt;/p&gt;&lt;p&gt;as i found at &lt;a href="http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/" title="iis site"&gt;http://learn.iis.net/page.aspx/465/url-rewrite-module-configuration-reference/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;to specify the &amp;quot;?&amp;quot; character in rule match you need to enclose it like this: [?] &lt;/p&gt;&lt;p&gt;so my rewrite rule looks like this:&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;Rewrite to Search.aspx&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;match url=&amp;quot;^Search[?](.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;/Search.aspx?q={R:1}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt; &lt;/p&gt;&lt;p&gt;but it not works, it&amp;#39;s &amp;quot;404 not found&amp;quot;.&lt;/p&gt;&lt;p&gt;so am i doing something wrong, or there is somethig else...&lt;/p&gt;&lt;p&gt;please help! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>outbound rules URL rewriting HTTP_HOST</title><link>http://forums.iis.net/p/1160490/1915206.aspx#1915206</link><pubDate>Mon, 31 Aug 2009 07:04:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1915206</guid><dc:creator>ISO3200</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;m running a reverse proxy using ARR and URL rewrite v2 beta.&amp;nbsp; So far, the reverse proxy is working fine.&amp;nbsp; I&amp;#39;m trying to setup outbound rules to inspect the HTML response to rewrite any href or src attributes in &amp;lt;a&amp;gt; tags.&amp;nbsp;&amp;nbsp;So far, any request to &lt;a href="http://www.proxyserver.com/foo.aspx"&gt;http://www.proxyserver.com/foo.aspx&lt;/a&gt;&amp;nbsp;is routed and rewritten properly to &lt;a href="http://www.targetserver.com/foo.aspx"&gt;http://www.targetserver.com/foo.aspx&lt;/a&gt;.&amp;nbsp; Great!&lt;/p&gt;
&lt;p&gt;But somewhere in the html of foo.aspx there is an &amp;lt;a href=&amp;quot;http://www.targetserver.com/bar.aspx&amp;quot;&amp;gt;Go to bar&amp;lt;/a&amp;gt; that I want to be rewritten in an outbound rule as &lt;a href="http://www.proxyserver.com/bar.aspx"&gt;http://www.proxyserver.com/bar.aspx&lt;/a&gt;.&amp;nbsp; Is this possible?&amp;nbsp; I&amp;#39;ve read &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;and am finding myself stuck on trying to get the pattern to match on host and not path.&lt;/p&gt;
&lt;p&gt;Any help on this is much appreciated&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my rules so far:&lt;/p&gt;
&lt;p&gt;&amp;lt;rewrite&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;lt;rules&amp;gt;&lt;br /&gt;&amp;lt;rule name=&amp;quot;Reverse Proxy to target&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;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;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;https://www.targetserver.com/{R:1}&amp;quot; /&amp;gt;&lt;br /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rules&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;lt;outboundRules&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 name=&amp;quot;Rewrite URLs in markup&amp;quot; patternSyntax=&amp;quot;ECMAScript&amp;quot; stopProcessing=&amp;quot;false&amp;quot; preCondition=&amp;quot;HTML Only&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 filterByTags=&amp;quot;A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script&amp;quot; customTags=&amp;quot;&amp;quot; pattern=&amp;quot;targetserver.com&amp;quot; ignoreCase=&amp;quot;true&amp;quot; negate=&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;conditions logicalGrouping=&amp;quot;MatchAny&amp;quot; trackAllCaptures=&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;action type=&amp;quot;Rewrite&amp;quot; value=&amp;quot;proxyserver.com&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&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;&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;preConditions&amp;gt;&lt;/p&gt;
&lt;p&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;preCondition name=&amp;quot;HTML Only&amp;quot; logicalGrouping=&amp;quot;MatchAny&amp;quot; patternSyntax=&amp;quot;ECMAScript&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_CONTENT_TYPE}&amp;quot; pattern=&amp;quot;^text/html&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;/preCondition&amp;gt;&lt;/p&gt;
&lt;p&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;/preConditions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/outboundRules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rewrite&amp;gt;&lt;/p&gt;</description></item><item><title>Ajax Controls problem with RewriteModule</title><link>http://forums.iis.net/p/1159484/1911269.aspx#1911269</link><pubDate>Thu, 23 Jul 2009 06:16:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911269</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;by default, when i using rewriteModule and rewrite page/default.aspx?id={0}&amp;amp;amp;title={1} to page/{0}/{1} All Ajax Controls (UpdatePanel, UpdateProgress and etc) dont works.&lt;/p&gt;&lt;p&gt;what should i do?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>setting action attribute of form tag without using ASP.NET 3.5 SP1</title><link>http://forums.iis.net/p/1159464/1911228.aspx#1911228</link><pubDate>Wed, 22 Jul 2009 19:24:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911228</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;hi&lt;/p&gt;&lt;p&gt;when i using rewriteModule, must set form action attribute, but i cant set this is ASP.NET 3.5. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;how to setting action attribute of form tag without using ASP.NET 3.5 SP1?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>DataPager and RewriteModule</title><link>http://forums.iis.net/p/1159453/1911175.aspx#1911175</link><pubDate>Wed, 22 Jul 2009 12:12:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911175</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I used DataPager for moving to pages&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;asp:DataPager ID=&amp;quot;dpSummary&amp;quot; class=&amp;quot;pager&amp;quot; runat=&amp;quot;server&amp;quot; PagedControlID=&amp;quot;lvSummary&amp;quot;&lt;br /&gt;QueryStringField=&amp;quot;page&amp;quot; PageSize=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Fields&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:NextPreviousPagerField ButtonType=&amp;quot;Button&amp;quot; ShowFirstPageButton=&amp;quot;True&amp;quot; ShowNextPageButton=&amp;quot;False&amp;quot; ShowPreviousPageButton=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:NumericPagerField /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;asp:NextPreviousPagerField ButtonType=&amp;quot;Button&amp;quot; ShowLastPageButton=&amp;quot;True&amp;quot; ShowNextPageButton=&amp;quot;False&amp;quot; ShowPreviousPageButton=&amp;quot;False&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/Fields&amp;gt;&lt;br /&gt;&amp;lt;/asp:DataPager&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;and would change&amp;nbsp; &lt;span style="font-weight:bold;"&gt;news/default.aspx?page=3&lt;/span&gt; to &lt;span style="font-weight:bold;"&gt;news/3.aspx&lt;/span&gt; by rewriteModule.&lt;/p&gt;&lt;p&gt;What should I do?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: change .aspx to other like .abcd with rewriteModule</title><link>http://forums.iis.net/p/1158967/1910494.aspx#1910494</link><pubDate>Thu, 16 Jul 2009 06:22:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910494</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&lt;b&gt;&amp;nbsp;Thank you ruslan&lt;/b&gt;&lt;br /&gt;&lt;br /&gt; According to you that I read post above and I do this I use the following rule for rewriting.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&amp;lt;rule name=&amp;quot;Rewrite aspx&amp;quot; stopProcessing=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;match url=&amp;quot;(.*).abcd&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;{R:1}.aspx&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;p&gt; &lt;br /&gt;&lt;br /&gt; Now I use a rule when the other user typed an address that ending with .aspx, must redirect to this address with the suffix .abcd. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;Redirect aspx&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;match url=&amp;quot;(.*).aspx&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;{R:1}.abcd&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="text-align:left;" id="result_box"&gt;but I face Redirect Loop message. Please help me to.&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt; Very Thank&lt;/p&gt;</description></item><item><title>subdomain with rewriteModule</title><link>http://forums.iis.net/p/1158968/1909197.aspx#1909197</link><pubDate>Sat, 04 Jul 2009 19:47:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909197</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;hi
i&amp;#39;m using this rule for rewriting subdomain&lt;/p&gt;&amp;lt;rule name=&amp;quot;SubDomain&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&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;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;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(.+).domain.com(.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;{C:1}/{R:1}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;div class="post-text"&gt;
                

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;and i&amp;#39;m corrected host file to&lt;/p&gt;

&lt;p&gt;127.0.0.1    domain.com&lt;/p&gt;

&lt;p&gt;when user typed &lt;b&gt;news.domain.com/default.aspx&lt;/b&gt; it must return &lt;b&gt;domain.com/news/default.aspx&lt;/b&gt; but browser showed Address not found.&lt;/p&gt;

&lt;p&gt;how do i?&lt;/p&gt;

&lt;p&gt;please help&lt;/p&gt;

&lt;p&gt;thanks all&lt;/p&gt;

            &lt;/div&gt;</description></item><item><title>change .aspx to other like .abcd with rewriteModule</title><link>http://forums.iis.net/p/1158967/1909196.aspx#1909196</link><pubDate>Sat, 04 Jul 2009 19:43:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909196</guid><dc:creator>sadegh-shad</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;div class="post-text"&gt;
                &lt;p&gt;hello all&lt;/p&gt;

&lt;p&gt;i want to change &lt;b&gt;.aspx&lt;/b&gt; to like &lt;b&gt;.abcd&lt;/b&gt; with &lt;b&gt;rewriteModule&lt;/b&gt; in asp.net and iis7?&lt;/p&gt;

&lt;p&gt;therefore when user typed &lt;b&gt;home/default.aspx&lt;/b&gt; must be redirect to &lt;b&gt;home/default.abcd&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;please help me&lt;/p&gt;

&lt;p&gt;excuse for my &lt;b&gt;weakly&lt;/b&gt; english writing&lt;/p&gt;

&lt;p&gt;thanks all&lt;/p&gt;

            &lt;/div&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><item><title>Setup multiple rewrite rules</title><link>http://forums.iis.net/p/1157159/1901814.aspx#1901814</link><pubDate>Fri, 24 Apr 2009 19:23:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901814</guid><dc:creator>sharepointbuzz</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I am having issues where just the rewrite maps are working for me but not the rewrite rules.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;i&amp;nbsp;just recently migrated my blog from wordpress over&amp;nbsp;to sharepoint.&amp;nbsp;&amp;nbsp;while&amp;nbsp;running&amp;nbsp;my wordpress blog, i have changed the url&amp;nbsp;structure a few times.&amp;nbsp; i have had to&amp;nbsp;setup multiple rules for each of the&amp;nbsp;different urls&amp;nbsp;so that hopefully the url rewrite module will work for all types of urls that are coming in.&amp;nbsp; i need the communities help in understanding what im doing wrong.&lt;/p&gt;
&lt;p&gt;here are my requirements:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;301 redirect - to ensure that SEO&amp;nbsp;rankings are passed over to the new URL structure&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;need to process all the rules and make sure users see the new URL structure&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;here&amp;nbsp;are the 4 rules i have setup:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;rewrite map &lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;reason:&amp;nbsp; this rule is used for URLs that can not be matched from the old URL structure to the new URL structure&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;stop processing: true&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;match url: .*&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;condition: match ll -&amp;gt; StaticRewrite matches pattern (.+)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;action: redirect, {C:1}, Permanent (301)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;date / text redirect&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;reason:&amp;nbsp; this rule is used for URLs (example: &lt;a href="http://www.domain.com/2009/01/15/post-seo-name/"&gt;http://www.domain.com/2009/01/15/post-seo-name/&lt;/a&gt; ) can be mapped over to the new URL ( &lt;a href="http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx"&gt;http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx&lt;/a&gt; )&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;stop processing: true&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;match url: ^/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-z-]+)/&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;condition: none&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;action: redirect, /archive/{R:1}/{R:2}/{R:3}/{R:4}.aspx, Permanent (301)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;date / text / feed redirect&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;reason:&amp;nbsp; this rule is used for URLs (example: &lt;a href="http://www.domain.com/2009/01/15/post-seo-name/feed/"&gt;http://www.domain.com/2009/01/15/post-seo-name/feed/&lt;/a&gt; ) can be mapped over to the new URL ( &lt;a href="http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx"&gt;http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx&lt;/a&gt; )&lt;/div&gt;&lt;/li&gt;
&lt;div&gt;
&lt;li&gt;
&lt;div&gt;stop processing: true&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;match url: ^/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-z-]+)/feed/&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;condition: none&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;action: redirect, /archive/{R:1}/{R:2}/{R:3}/{R:4}.aspx, Permanent (301)&lt;/div&gt;&lt;/li&gt;&lt;/div&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;index.php / date/ text redirect&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;reason:&amp;nbsp; this rule is used for URLs (example: &lt;a href="http://www.domain.com/index.php/2009/01/15/post-seo-name/"&gt;http://www.domain.com/index.php/2009/01/15/post-seo-name/&lt;/a&gt; ) can be mapped over to the new URL ( &lt;a href="http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx"&gt;http://www.domain.com/archive/2009/01/15/post-seo-name/.aspx&lt;/a&gt; )&lt;/div&gt;&lt;/li&gt;
&lt;div&gt;
&lt;li&gt;
&lt;div&gt;stop processing: true&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;match url: ^/index.php/([0-9]+)/([0-9]+)/([0-9]+)/([_0-9a-z-]+)/feed/&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;condition: none&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;action: redirect, /archive/{R:1}/{R:2}/{R:3}/{R:4}.aspx, Permanent (301)&lt;/div&gt;&lt;/li&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;now the first rule works great but since i want permanent 301 redirects, the option to uncheck stop processing all rules is not available for me.&amp;nbsp; the option to uncheck stop processing all rules is only available if i select the rewrite option - which is not what i want.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;my traffic has obviously dropped off by 2/3.&amp;nbsp; i would love it if someone can help me achieve my requirements of permanent 301 redirect the following different urls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.domain.com/2009/01/15/post-seo-name/"&gt;http://www.domain.com/2009/01/15/post-seo-name/&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.domain.com/2009/01/15/post-seo-name/feed/"&gt;http://www.domain.com/2009/01/15/post-seo-name/feed/&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.domain.com/index.php/2009/01/15/post-seo-name/"&gt;http://www.domain.com/index.php/2009/01/15/post-seo-name/&lt;/a&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.domain.com/seo/post-seo-name/"&gt;http://www.domain.com/seo/post-seo-name/&lt;/a&gt; &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;to the following new url structure &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;a href="http://www.domain.com/archive/2009/01/15/post-seo-name.aspx"&gt;http://www.domain.com/archive/2009/01/15/post-seo-name.aspx&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;appreciate any advice you can all give me.&amp;nbsp; i hope this explains my issue appropriately.&lt;/p&gt;</description></item></channel></rss>