<?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 'subdomain'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=subdomain&amp;orTags=0</link><description>Search results matching tag 'subdomain'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Rewrite Subdomain to Subfolder (possible bug)</title><link>http://forums.iis.net/p/1162498/1924066.aspx#1924066</link><pubDate>Tue, 10 Nov 2009 13:53:57 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924066</guid><dc:creator>MV2001</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hello all:&lt;br /&gt;&lt;br /&gt;My domain &amp;quot;just4test.com&amp;quot; has a Static/Permanent IP associated (w.x.y.z) and a DNS Zone record like this...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;* A w.x.y.z&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;... so that when you write on a browser &amp;quot;any_subdomain&amp;quot;.just4test.com you are redirected to the main IP Domain.&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;i&gt;user1.just4test.com&lt;/i&gt; --&amp;gt;&lt;i&gt; w.x.y.z&lt;/i&gt;&lt;br /&gt;&lt;i&gt;user2.just4test.com &lt;/i&gt;--&amp;gt;&lt;i&gt; w.x.y.z&lt;br /&gt;userN.just4test.com&lt;/i&gt; --&amp;gt;&lt;i&gt; w.x.y.z&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve created a IIS7 URL Rewrite Rule, with this objective:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;userN.just4test.com/folder&lt;/i&gt; &lt;b&gt;--(rewrite URL to)--&amp;gt;&lt;/b&gt; &lt;i&gt;userN.just4test.com/userN/folder&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This is running properly like this...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;userN.just4test.com&lt;/i&gt; &lt;b&gt;--(rewriting URL to)--&amp;gt;&lt;/b&gt; &lt;i&gt;userN.just4test.com/userN/Default.aspx&lt;/i&gt;&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;and like this...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;userN.just4test.com/ts/&lt;/i&gt; &lt;b&gt;--(rewriting URL to)--&amp;gt;&lt;/b&gt; &lt;i&gt;userN.just4test.com/userN/ts/Default.aspx&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;BUT IT&amp;#39;S NOT RUNNING LIKE THIS&lt;/u&gt;...&lt;br /&gt;&lt;br /&gt;&lt;i&gt;userN.just4test.com/ts&lt;/i&gt; &lt;b&gt;--(rewriting URL to)--&amp;gt;&lt;/b&gt; &lt;i&gt;userN.just4test.com/userN/userN/ts/Default.aspx&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;For some strange reason that I don&amp;#39;t reach to understand, the subdomain is converted to a folder path TWICE.&lt;/u&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;This is the URL Rewrite Rule that I&amp;#39;m applying:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;rule name=&amp;quot;subdomain.domain.com/whatever -&amp;gt; subdomain.domain.com/subdomain/whatever&amp;quot; enabled=&amp;quot;true&amp;quot; stopProcessing=&amp;quot;true&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;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;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; negate=&amp;quot;true&amp;quot; pattern=&amp;quot;^www\.just4test\.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;lt;add input=&amp;quot;{HTTP_HOST}&amp;quot; pattern=&amp;quot;^(\w+)\.just4test\.com$&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditions&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&amp;quot;Rewrite&amp;quot; url=&amp;quot;{C:1}/{R:1}&amp;quot; appendQueryString=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/rule&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;u&gt;FINAL NOTES&lt;/u&gt;:&lt;br /&gt;&lt;br /&gt;- My Default.aspx is a test web page created as explained &lt;a href="http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules/" title="Tracing Rewrite Rules" target="_blank"&gt;here&lt;/a&gt;, in order to see the HTTP_X_ORIGINAL_URL and SCRIPT_NAME variables.&lt;br /&gt;&lt;br /&gt;- There is a Default.aspx page on &lt;i&gt;wwwroot&lt;/i&gt;, on &lt;i&gt;wwwroot/userN&lt;/i&gt; and on &lt;i&gt;wwwroot/userN/ts&lt;/i&gt; folders. And YES, they are all REAL folders, not VIRTUAL folders.&lt;/p&gt;&lt;p&gt;- I&amp;#39;ve used the Failed Request Tracing to Trace Rewrite Rules, and the only contribution is to know that the URL Rewrite module is receiving the URL as this... &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;userN.just4test.com/userN/ts&lt;/i&gt;&lt;/p&gt;&lt;p&gt;...when no RULE should still been applied.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;THANKS.&lt;/p&gt;</description></item><item><title>Re: Rewrite URL -&amp;gt; subfolder to subdomain</title><link>http://forums.iis.net/p/1161395/1919653.aspx#1919653</link><pubDate>Tue, 06 Oct 2009 12:56:34 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1919653</guid><dc:creator>nikola tesla</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Thank you, that helped a lot. &lt;/p&gt;&lt;p&gt;I have&amp;nbsp; URL Rewrite 2.0 module in virtual machine so I can practice, and I need to automate url rewrite response. &lt;/p&gt;&lt;p&gt;So for basic functinality of converting&lt;/p&gt;&lt;p&gt;www.domian.org/subdomainfolder/default.aspx&lt;/p&gt;&lt;p&gt;to this&lt;/p&gt;&lt;p&gt;www.subdomainfolder.domain.org/default.aspx&lt;/p&gt;&lt;p&gt;what I need to do, to automate url rewrite response in URL Rewrite module v2.0?&lt;/p&gt;&lt;p&gt;Thanx &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>URL rewrite for subdomain to subfolder</title><link>http://forums.iis.net/p/1161322/1918783.aspx#1918783</link><pubDate>Tue, 29 Sep 2009 15:13:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918783</guid><dc:creator>rokrana</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;I want URL rewriting setting in IIS7 for redirecting subdomain to subfolder.&lt;/p&gt;
&lt;p&gt;The scenario is:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://subdomain1.mysite.com/"&gt;http://subdomain1.mysite.com&lt;/a&gt; --&amp;gt; &lt;a href="http://www.mysite.com/subdomain1"&gt;http://www.mysite.com/subdomain1&lt;/a&gt;&amp;nbsp; or &lt;a href="http://mysite.com/subdomain1"&gt;http://mysite.com/subdomain1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://subdomain2.mysite.com/"&gt;http://subdomain2.mysite.com&lt;/a&gt; --&amp;gt; &lt;a href="http://www.mysite.com/subdomain2"&gt;http://www.mysite.com/subdomain2&lt;/a&gt;&amp;nbsp; or &lt;a href="http://mysite.com/subdomain2"&gt;http://mysite.com/subdomain2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and &lt;/p&gt;
&lt;p&gt;&lt;a href="http://subdomain1.mysite.com/mypage.aspx"&gt;http://subdomain1.mysite.com/mypage.aspx&lt;/a&gt;&amp;nbsp; --&amp;gt; &lt;a href="http://mysite.com/subdomain1/mypage.aspx"&gt;http://mysite.com/subdomain1/mypage.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sandeep&lt;/p&gt;</description></item><item><title>Re: IIS Worker Process stopped working and was closed</title><link>http://forums.iis.net/p/1148570/1916209.aspx#1916209</link><pubDate>Tue, 08 Sep 2009 19:20:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1916209</guid><dc:creator>jonkIIS</dc:creator><cs:applicationKey>iis_7_-_troubleshooting-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m having same problem. &lt;/p&gt;&lt;p&gt;I&amp;#39;m running IIS on my Win Vista Biz machine.&lt;/p&gt;&lt;p&gt;Have about 20 sites running fine for many months. All of my sites are for local development only so they are mapped to mysite.jon mysite2.jon etc thru my hosts file.Again I have had no problems until recently and have nothing but default settings in my IIS installation.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If I add a site with a subdomain like http://&lt;b&gt;mysub.&lt;/b&gt;mysite.jon and then run it I get a popup window saying: IIS Worker Process stopped working and was closed A problem caused the application to stop working correctly.&lt;/p&gt;Resolution that is working so far:&lt;br /&gt;Remove the periods from the SITE NAME in IIS&lt;br /&gt;&lt;br /&gt;Sitename in IIS: test.mysite.jon causes error however if I simply rename the site to testmysite.jon it works fine. All other settings including hosts file, bindings, app pool were left the same so I&amp;#39;m suspecting this must be a bug that has something to do with the sitename in IIS.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;pre class="FreeText"&gt; &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Mask a folder using URL rewrite</title><link>http://forums.iis.net/p/1158694/1908146.aspx#1908146</link><pubDate>Wed, 24 Jun 2009 17:25:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908146</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Look at this article: &lt;a href="http://learn.iis.net/page.aspx/468/using-global-and-distributed-rewrite-rules/"&gt;http://learn.iis.net/page.aspx/468/using-global-and-distributed-rewrite-rules/&lt;/a&gt;. It may give you an idea on how to do create rules to rewrite subdomains.&lt;/p&gt;</description></item><item><title>Re: Rewrite Rule Request</title><link>http://forums.iis.net/p/1158479/1907423.aspx#1907423</link><pubDate>Wed, 17 Jun 2009 21:50:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907423</guid><dc:creator>DanielVL</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Here is an example, see how the subdomain part is captured and then used to rewrite the URL:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/page.aspx/468/using-global-and-distributed-rewrite-rules/"&gt;http://learn.iis.net/page.aspx/468/using-global-and-distributed-rewrite-rules/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By searching &lt;a href="http://www.bing.com/search?q=subdomain+rewrite+site%3Aiis.net"&gt;http://www.bing.com/search?q=subdomain+rewrite+site%3Aiis.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First result was: &lt;a href="http://forums.iis.net/t/1155754.aspx"&gt;http://forums.iis.net/t/1155754.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Daniel.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Rewrite Rule Request</title><link>http://forums.iis.net/p/1158479/1907258.aspx#1907258</link><pubDate>Tue, 16 Jun 2009 18:50:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907258</guid><dc:creator>Renato Ostorero</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Hello,&lt;br /&gt;I&amp;#39;m really new to rewrite so I kindly ask you a little help.&lt;br /&gt;I need to create a rule that permits to work with subdomain.&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;a user connects to &lt;a href="http://windows.mysite.it/"&gt;http://windows.mysite.it&lt;/a&gt;&amp;nbsp; he receives the page &lt;a href="http://www.mysite.it/sezione/windows?area_id=41"&gt;http://www.mysite.it/sezione/windows?area_id=41&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I try many different tests but no way to make it work.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;
&lt;p&gt;Renato&lt;/p&gt;</description></item><item><title>Re: Rewrite Rule Not Working</title><link>http://forums.iis.net/p/1158049/1905873.aspx#1905873</link><pubDate>Fri, 05 Jun 2009 06:04:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905873</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;If redirect works then rewrite should have worked as well.&lt;/p&gt;
&lt;p&gt;In any case if you do not want to add new binding for every new user, you can change the binding for &amp;quot;Default Web Site&amp;quot; to use some different host header, e.g &amp;quot;localhost&amp;quot; and then configure the IIS site for mysite.com to use &amp;quot;*&amp;quot; host header binding. That way requests for any domain, other than localhost will be routed to that site.&lt;/p&gt;</description></item><item><title>Re: Need Help with URL Rewrite in IIS 7</title><link>http://forums.iis.net/p/1158022/1905373.aspx#1905373</link><pubDate>Mon, 01 Jun 2009 20:55:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905373</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Refer to this thread: &lt;a href="http://forums.iis.net/t/1158049.aspx"&gt;http://forums.iis.net/t/1158049.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Rewrite Rule Not Working</title><link>http://forums.iis.net/p/1158049/1905372.aspx#1905372</link><pubDate>Mon, 01 Jun 2009 20:49:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1905372</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>iis7_-_url_rewrite_module-41</cs:applicationKey><description>&lt;p&gt;Is this rule located in the web.config file at the root directory of the web site? If yes, then substitution url should be &amp;quot;users/{C:1}/{R:1}&amp;quot;.&lt;/p&gt;</description></item></channel></rss>