So, I see assurances all over the place that being able to host multiple subdomains here is no problem, but I'm not finding that to be necessarily true. I want to set up like this: \hosting root -\www -\subdomain and have www.mydomain.com and subdomain.mydomain.com running, both of which are ASP.NET applications with their own web.configs. The recommended programmatic redirect is not an option for me as I want the host address to remain on the subdomain. Also, redirecting to an application that is in a subdirectory of another application is a huge pain and I definitely don't want to merge config files... Using the UrlRewrite module I can get close, but ~'s in ASP.NET application URL's do not resolve to the parent application, they resolve to the hosting root application which is a mess. Apparently this is fixed in an update, according to http://learn.iis.net/page.aspx/460/using-url-rewrite-module/ under the "ASP.NET update" section. I guess discountasp.net does not have this update installed? As far as I can see, there are no elegant options for hosting multiple subdomain applications here. Am I missing something? EDIT: By the way, I would be completely satisfied if I could just run these 2 ASP.NET applications independently of each other whether they are addressed via subdomains or not. It's really the side-by-side ASP.NET application thing that's got me in a bind...
Do you have the subdomain add-on activated for your account, and are you setting the subdirectories as application starting points?
Hi mjp, Thanks for the reply. Yes, and Yes. And again, I did get a subdirectory application working properly EXCEPT for the whole tilde (~) thing, which I believe might be the only real remaining issue with my attempt at getting this to work using the Url Rewrite module. Example of this problem: - blog application hosted in subdirectory .\blog, referred to by domain blog.mydomain.com. - in the blog application, default.aspx specifies an image location as "~/images/someimage.gif". - image URL is resolved as http://blog.mydomain.com/blog/images/someimage.gif (tilde is relative to the top-level application, not the subdirectory) If I could get this working I think I'd be OK. Do your servers have this update that is referred to in http://learn.iis.net/page.aspx/460/using-url-rewrite-module/ ? OR If you can tell me how to get the blog application working as it's own independent application in a subdirectory within my primary web application (http://www.mydomain.com/blog) that would probably work for me too. I'm pretty sure this is impossible without merging web.configs (which I definitely don't want to do), I just wanted to be clear that I don't NEED the subdomain, I just need this (and a wiki application, too) working... Thanks.
Here's how to reproduce the issue: 1) Create subfolder in web hosting root folder "Test" 2) Make folder "Test" ASP.NET application 3) Create file <hosting root>\Test\test.aspx with simple contents and a server-generated relative url using the tilde: <%@ Page Language="C#" %> <a runat="server" href="~/page.aspx" >broken link</a> 4) Create simple URL rewrite rule (replace domain name): <rule name="test"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="test.mydomain.com" /> </conditions> <action type="Rewrite" url="/Test/{R:0}" /> </rule> 5) Navigate to new page via subdomain: http://test.mydomain.com/test.aspx Observe the href generated for the "broken link" hyperlink on that page is: http://test.mydomain.com/Test/page.aspx It should point here: http://test.mydomain.com/page.aspx
I am curious about this very issue as well... Can someone from support please elucidate on what needs to done in order for this to work? I have read other posts that were closed after only 2 one sentence responses from discountAsp.net support. Any detailed information on how to do this without writing any Asp.net script is ideal; I am using Asp.net MVC, so there may be another option aside from using the IIS7 url rewrite module, but if so I'm not aware of it. Please help.