<?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 Map'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Rewrite+Map&amp;orTags=0</link><description>Search results matching tag 'Rewrite Map'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Trying to build specific maps</title><link>http://forums.iis.net/p/1161119/1917907.aspx#1917907</link><pubDate>Wed, 23 Sep 2009 07:43:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917907</guid><dc:creator>waynesmall</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve migrated my website from Sharepoint over to WordPress on IIS 7.0.&amp;nbsp; As part of that I&amp;#39;ve also taken my blog which was also Sharepoint but on another URL and merged it into the one website with the main website itself.&amp;nbsp; eg I had &lt;a href="http://www.sbsfaq.com/"&gt;www.sbsfaq.com&lt;/a&gt; which was Sharepoint Services 2.0 and &lt;a href="http://blog.sbsfaq.com/"&gt;http://blog.sbsfaq.com&lt;/a&gt; which was Sharepoint Services 3.0 and I&amp;#39;ve merged all the content into &lt;a href="http://www.sbsfaq.com/"&gt;www.sbsfaq.com&lt;/a&gt; under wordpress.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got three issues I need help with please.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Issue 1&lt;/em&gt; - This applies just to the &lt;a href="http://www.sbsfaq.com/"&gt;www.sbsfaq.com&lt;/a&gt; site. I want to build specific URL Rewrite rules to redirect the old content over to the new content. I know both the old URLs and the new URLs for each article I want to redirect, but I can&amp;#39;t figure out how to make the rules work.&lt;/p&gt;
&lt;p&gt;eg I want to redirect &lt;a href="http://www.sbsfaq.com/Lists/FAQs/DispForm.aspx?ID=138"&gt;http://www.sbsfaq.com/Lists/FAQs/DispForm.aspx?ID=138&lt;/a&gt; to &lt;a href="http://www.sbsfaq.com/?p=1041"&gt;http://www.sbsfaq.com/?p=1041&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Issue 2&lt;/em&gt; - Similar to issue 1, but with the complexity of needing to redirect people from &lt;a href="http://blog.sbsfaq.com/"&gt;http://blog.sbsfaq.com&lt;/a&gt; to &lt;a href="http://www.sbsfaq.com/"&gt;www.sbsfaq.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;eg I want to redirect&amp;nbsp; &lt;a href="http://blog.sbsfaq.com/Lists/Posts/Post.aspx?ID=305"&gt;http://blog.sbsfaq.com/Lists/Posts/Post.aspx?ID=305&lt;/a&gt;&amp;nbsp;to&amp;nbsp; &lt;a href="http://www.sbsfaq.com/?p=725"&gt;http://www.sbsfaq.com/?p=725&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Issue 3&lt;/em&gt; - seperate to all of this I was trying to get pretty permalinks working.&amp;nbsp; I wanted to get it to be /articlename/postid to get the best possibel SEO benefit, but whilst I can enable it inside wordpress and I can see wordpress modify the URLrewrite rules, when I click on links in my site it displays the same pages (is I click on a link in the menu and it displays my blog page).&amp;nbsp; This last one is less of an issue for me but a nice to have.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to read the documentation and have messed with a few attempts to get this right but can&amp;#39;t make it work at all.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d appreciate any advise you might be able to give.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Wayne Small&lt;/p&gt;
&lt;p&gt;SBS MVP&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.sbsfaq.com/"&gt;www.sbsfaq.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Specifing rewrite map in external xml</title><link>http://forums.iis.net/p/1160809/1916486.aspx#1916486</link><pubDate>Thu, 10 Sep 2009 17:12:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916486</guid><dc:creator>galkom</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Is there a way to specify that rule should use map defined in external xml (can be located in the same folder as web.config)?&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;</description></item><item><title>Rewrite Maps Question</title><link>http://forums.iis.net/p/1160202/1914135.aspx#1914135</link><pubDate>Thu, 20 Aug 2009 19:17:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1914135</guid><dc:creator>hats</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I have created a rewrite map in iis 7 with one redirect rule. When I look at the rule in edit mode in iis it says that it is a permanent (301) redirect, which is what I want. How ever when I look in the web.config file I don&amp;#39;t see anything to indicate that the redirect is permanent. Is this a bug? Do I need to add anything to the rule directly in the web.config to make the redirect permanent? Here is what I see in the web.config:&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 name=&amp;quot;Redirect rule1 for TestMap&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&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;{TestMap:{REQUEST_URI}}&amp;quot; pattern=&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&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;Redirect&amp;quot; url=&amp;quot;{C:1}&amp;quot; appendQueryString=&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;lt;/rule&amp;gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: IIS Rewrite and Mapping</title><link>http://forums.iis.net/p/1158952/1909547.aspx#1909547</link><pubDate>Wed, 08 Jul 2009 03:44:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909547</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Couple of things to try:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;In samwin.config file remove the &amp;lt;rewrite&amp;gt; and &amp;lt;/rewrite&amp;gt; tags.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If #1 does not help - check if rewrite map works when it is not in external file but in the web.config inside of the &amp;lt;rewrite&amp;gt; section&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Also, the reference to the rewrite map in the rule action does not look correct.&lt;/p&gt;</description></item><item><title>Dynamically Generate Rewrite Maps?</title><link>http://forums.iis.net/p/1157868/1904669.aspx#1904669</link><pubDate>Mon, 25 May 2009 01:43:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1904669</guid><dc:creator>davidpb</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;Is it possible to dynamically generate rewrite maps?&amp;nbsp; I have hundreds of products in my product catalogue so it isn&amp;#39;t feasible to add a key/value pair for each possibility.&lt;/p&gt;&lt;p&gt;&amp;nbsp;e.g. www.somedomain.com/products.aspx?id=1 should rewrite to www.somedomain.com/products/fitness &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Or is there a better way of handling this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;David. &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><item><title>Re: Use rewrite Map to redirect domains..</title><link>http://forums.iis.net/p/1157165/1902016.aspx#1902016</link><pubDate>Mon, 27 Apr 2009 17:30:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902016</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Something like this may help:&lt;br /&gt;&lt;br /&gt;&amp;lt;rewriteMaps&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rewriteMap name=&amp;quot;domains&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;add key=&amp;quot;newdomain.com&amp;quot; value=&amp;quot;somefolder&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;add key=&amp;quot;anotherdomain.com&amp;quot; value=&amp;quot;someotherfolder&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/rewriteMap&amp;gt;&lt;br /&gt;&amp;lt;/rewriteMaps&amp;gt;&lt;br /&gt;&amp;lt;rules&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;Redirect by domain&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;match url=&amp;quot;.*&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;add input=&amp;quot;{domains:{HTTP_HOST}}&amp;quot; pattern=&amp;quot;(.+)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;action type=&amp;quot;Redirect&amp;quot; url=http://mydomain.com/{C:1}/ appendQueryString=&amp;quot;false&amp;quot; redirectType=&amp;quot;Permanent&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;br /&gt;&amp;lt;/rules&amp;gt;&lt;/p&gt;
&lt;p&gt;Note that rewrite map lookup is literal, so you cannot use any patterns when specifying domain names in the rewrite map.&lt;/p&gt;</description></item><item><title>Re: Redirect .NET applications</title><link>http://forums.iis.net/p/1156166/1897809.aspx#1897809</link><pubDate>Mon, 23 Mar 2009 17:17:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897809</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;You can definitely use rewrite maps in conditions. In fact, if you use URL rewriter UI, click &amp;quot;Add Rules&amp;quot; and then choose &amp;quot;Rule with Rewrite Map&amp;quot; rule template, it will generate for you the rewrite rule that uses rewrite map with a condition that references a rewrite map that uses REQUEST_URI.&lt;/p&gt;</description></item><item><title>Re: Inconsistency in the Condition Backreferences...</title><link>http://forums.iis.net/p/1155923/1896675.aspx#1896675</link><pubDate>Fri, 13 Mar 2009 18:51:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896675</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I could not repro this with a simple rewrite map. Could you also post an example of the 404-Static-Redirects rewrite map with which you can repro this error?&lt;/p&gt;</description></item><item><title>Re: Error parsing rewrite rules in configSource file - why?</title><link>http://forums.iis.net/p/1155260/1893411.aspx#1893411</link><pubDate>Sat, 14 Feb 2009 10:09:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1893411</guid><dc:creator>DarkMaster</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I have learned from experience that including the rewriteMaps from other then root of the site does not work - I tried also as you to&amp;nbsp;include the rewriteMap from a folder(for better manageability) but that was a no-go. Do it from the site&amp;#39;s root...&lt;/p&gt;</description></item></channel></rss>