<?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: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1910624.aspx</link><pubDate>Fri, 17 Jul 2009 06:34:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910624</guid><dc:creator>sadegh-shad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910624.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1910624</wfw:commentRss><description>&lt;p&gt;Location 1 with 2 have modified and the problem was resolved. But my
problem still is not resolved in this &lt;a href="http://forums.iis.net/t/1158968.aspx" style="font-weight:bold;" target="_blank"&gt;post&lt;/a&gt;. Please answer it too.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="text-align:left;" id="result_box"&gt;Thanks many &lt;span style="font-style:italic;font-weight:bold;"&gt;ruslan&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1910589.aspx</link><pubDate>Thu, 16 Jul 2009 21:01:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910589</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910589.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1910589</wfw:commentRss><description>&lt;p&gt;What&amp;#39;s the relative order of the rules?&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1910429.aspx</link><pubDate>Wed, 15 Jul 2009 17:50:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910429</guid><dc:creator>sadegh-shad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910429.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1910429</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Oh, like that does the final problems. &lt;br /&gt;&lt;br /&gt; Now I have one other
problem. When I use this rule, another rule that used for rewriting page news don&amp;#39;t work and gives page not found message. Now I do?&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;news rewrite rule&lt;/p&gt;&lt;p&gt;&amp;lt;rule name=&amp;quot;Rewrite news&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;match url=&amp;quot;^news/([.0-9.]+)[.]([.0-9a-z.]+).artx&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;news/default.aspx?id={R:1}&amp;amp;amp;t={R:2}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-weight:bold;"&gt;subdomain rule&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;Rewrite subdomain&amp;quot; stopProcessing=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;match url=&amp;quot;(.*)&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;conditions&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(?!www)(\w+)\.domain\.net$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/conditions&amp;gt;&lt;br /&gt;&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;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Really thank you.&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1910316.aspx</link><pubDate>Tue, 14 Jul 2009 23:30:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910316</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910316.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1910316</wfw:commentRss><description>&lt;p&gt;Try this maybe:&lt;/p&gt;
&lt;p&gt;&amp;lt;rule name=&amp;quot;Redirect subdomain&amp;quot; stopProcessing=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;match url=&amp;quot;(\w+)/(.*)&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;nbsp;&amp;nbsp;&amp;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^domain\.net$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;action type=&amp;quot;Redirect&amp;quot; url=&amp;quot;http://{R:1}.domain.net/{R:2}&amp;quot; redirectType=&amp;quot;Permanent&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt; &lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1910081.aspx</link><pubDate>Mon, 13 Jul 2009 09:03:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910081</guid><dc:creator>sadegh-shad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910081.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1910081</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;for redirect i&amp;#39;m used this rule&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;Redirect subdomain&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;^([.0-9a-z.]+)&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; negate=&amp;quot;true&amp;quot; pattern=&amp;quot;^(?!www)(\w+)\.domain\.net$&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;http://{R:1}.domain.net&amp;quot; redirectType=&amp;quot;Permanent&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;&amp;nbsp;this rule is correct? if correct changes this need to work correct for this?&lt;/p&gt;&lt;p&gt;domain.net/f1/f2/f3/../fn&lt;/p&gt;&lt;p&gt;thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1909950.aspx</link><pubDate>Fri, 10 Jul 2009 20:17:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909950</guid><dc:creator>sadegh-shad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909950.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909950</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thanks ruslan&lt;/p&gt;&lt;p&gt;it&amp;#39;s resolved. &lt;br /&gt;&lt;/p&gt;

&lt;p&gt;now how do i when user typed &lt;b&gt;domain.com/news&lt;/b&gt;/default.aspx redirect it to &lt;b&gt;news.domain.com&lt;/b&gt;/default.aspx ???&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1909548.aspx</link><pubDate>Wed, 08 Jul 2009 04:15:36 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909548</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909548.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909548</wfw:commentRss><description>&lt;p&gt;Could you provide more details on what does not work and what you are trying to do? If you post your rewrite rule here that will also help.&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1909208.aspx</link><pubDate>Sun, 05 Jul 2009 06:46:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909208</guid><dc:creator>sadegh-shad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909208.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1909208</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;it&amp;#39;s not work on local&lt;/p&gt;&lt;p&gt;&amp;nbsp;how do i? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1898218.aspx</link><pubDate>Thu, 26 Mar 2009 00:12:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1898218</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1898218.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1898218</wfw:commentRss><description>&lt;p&gt;What does web application use to determine the subdomain? Does it look at the HTTP_HOST server variable? If yes, then option #1 will not work, because the HTTP_HOST header will be still set to &lt;a href="http://www.site.com/"&gt;www.site.com&lt;/a&gt;&amp;nbsp;after rewriting.&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1897816.aspx</link><pubDate>Mon, 23 Mar 2009 19:00:28 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897816</guid><dc:creator>roundedcube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1897816.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1897816</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s the same IIS site.&amp;nbsp; However, subdomain.domain.com shows differently than &lt;a href="http://www.domain.com/"&gt;www.domain.com&lt;/a&gt;.&amp;nbsp;And the web app&amp;nbsp;uses the&amp;nbsp;&amp;quot;subdomain&amp;quot; to determine what to show.&amp;nbsp;&amp;nbsp;So, if I just&amp;nbsp;strip it off, the app will see &amp;quot;www&amp;quot; and will show the &amp;quot;www&amp;quot; view.&amp;nbsp;&amp;nbsp;I hope that makes sense.&amp;nbsp; Maybe you&amp;#39;re #1 option is what I need but what would I put in my web.config?&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1897113.aspx</link><pubDate>Tue, 17 Mar 2009 17:24:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897113</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1897113.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1897113</wfw:commentRss><description>&lt;p&gt;In this case there are two possible situations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;If the subdomain.domain.com is bound to the same web site as www.domain.com then you can just have a rewrite rule that strips off the &amp;quot;/subdomain&amp;quot; part from the URL path.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the subdomain.domain.com is a separate web site, then you will have to use Application Request Routing module as a reverse proxy to that web site.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1896931.aspx</link><pubDate>Mon, 16 Mar 2009 16:26:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896931</guid><dc:creator>roundedcube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1896931.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1896931</wfw:commentRss><description>&lt;p&gt;I meant &amp;quot;rewrite&amp;quot;.&amp;nbsp; The URL should remain &lt;a href="http://www.domain.com/subdomain"&gt;www.domain.com/subdomain&lt;/a&gt;&amp;nbsp;in the browser.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1896674.aspx</link><pubDate>Fri, 13 Mar 2009 18:38:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896674</guid><dc:creator>ruslany</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1896674.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1896674</wfw:commentRss><description>&lt;p&gt;When you say &amp;quot;point to&amp;quot;, do you mean rewriting or redirection. I.e. when user in the browser clicks on the link to &lt;a href="http://www.domain.com/subdomain"&gt;www.domain.com/subdomain&lt;/a&gt;&amp;nbsp;and gets a response, what URL should be in the browser&amp;#39;s address bar?&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1896586.aspx</link><pubDate>Thu, 12 Mar 2009 22:26:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1896586</guid><dc:creator>roundedcube</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1896586.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1896586</wfw:commentRss><description>&lt;p&gt;How about the&amp;nbsp;reverse of this?&amp;nbsp; How can I point:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.domain.com/subdomainname"&gt;www.domain.com/subdomainname&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;subdomain.domain.com&lt;/p&gt;
&lt;p&gt;and making sure that any subsequent pages after the /subdomainname also maps correctly such as:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.domain.com/subdomainname/page1.aspx"&gt;www.domain.com/subdomainname/page1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;would map to&lt;/p&gt;
&lt;p&gt;subdomain.domain.com/page1.aspx&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;</description></item><item><title>Re: Sub Domain Rewrite</title><link>http://forums.iis.net/thread/1895665.aspx</link><pubDate>Wed, 04 Mar 2009 18:22:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1895665</guid><dc:creator>sfraser</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1895665.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1152&amp;PostID=1895665</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;thanks that works a treat.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>