<?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>IIS7 - URL Rewrite Module</title><link>http://forums.iis.net/1152.aspx</link><description>All about the URL Rewrite Module for IIS 7.0. Use this forum to ask URL Rewiter questions, discuss issues, and request features.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Static URL Rewrite</title><link>http://forums.iis.net/thread/1909551.aspx</link><pubDate>Wed, 08 Jul 2009 04:22:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909551</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909551.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909551</wfw:commentRss><description>&lt;p&gt;Yes, if the value for the pos parameter cannot be extracted from the incoming URL, then you have to use rewrite maps.&lt;/p&gt;</description></item><item><title>Re: Static URL Rewrite</title><link>http://forums.iis.net/thread/1909173.aspx</link><pubDate>Fri, 03 Jul 2009 20:17:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909173</guid><dc:creator>briancupp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909173.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909173</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I tried your example but the problem is the value of {C:1} is not any where in the URL. I think what I am looking for is to have a rewrite map.&lt;/p&gt;&lt;p&gt;orders.widgets.com = orders.widgets.com/login.asp?pos=123&lt;/p&gt;&lt;p&gt;products.company.com = products.company.com/login.asp?pos=abc &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Static URL Rewrite</title><link>http://forums.iis.net/thread/1909090.aspx</link><pubDate>Thu, 02 Jul 2009 22:09:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909090</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909090.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909090</wfw:commentRss><description>&lt;p&gt;You can access the domain part of the URL y using the condition that checks {HTTP_HOST}, e.g:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;rule&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;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^\w+\.(\w+)\.com$&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;Login.asp?pos={C:1}&amp;quot; appendQueryString=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/rule&amp;gt;&lt;/p&gt;</description></item><item><title>Static URL Rewrite</title><link>http://forums.iis.net/thread/1909083.aspx</link><pubDate>Thu, 02 Jul 2009 20:21:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909083</guid><dc:creator>briancupp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909083.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909083</wfw:commentRss><description>&lt;p&gt;I have a single site (Default Web Site), using IIS 7.0, have URL Rewrite installed, and multiple domains point to this same single site.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When a user browses to URL: orders.widgets.com I would like to have them either redirected or rewritten (preferred) to the URL: orders.widgets.com/Login.asp?pos=widget&lt;/p&gt;&lt;p&gt;Here is another one&lt;br /&gt;&lt;/p&gt;&lt;p&gt;From URL: products.company.com&lt;/p&gt;&lt;p&gt;To URL: products.company.com/Login.asp?pos=compny&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have tried using the Rewrite Maps but that hasn&amp;#39;t worked because it seems to be looking at URL past the domain Example: products.company.com&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in Advance for your help. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>