Hello, I have an ASP.NET Web Forms Application in migration process to ASP.NET MVC 1. Urls are as follows:
hxxp://domain/Default.aspx (WebForms)
hxxp://domain/mvc/Controller/Action (MVC)
(hxxp because stackoverflow thinks they are links and prevents me from posting so many)
"mvc" is another application inside my Web Site in IIS7.
I now need to be able to do this:
hxxp://domain/subsiteName/Default.aspx (WebForms) hxxp://domain/subsiteName/mvc/Controller/Action (MVC)
Where 'subsiteName' can be anything and must be checked in runtime. I can't create directories for each subsiteName.
I thought of UrlRewriting, so /subsiteName/* rewrites to /*, but then I'd have to rewrite from WebForms to MVC.
I can't imagine a way to make a request to hxxp://domain/subsiteName/mvc/ ever be taken by the MVC application in this scenario.
Any ideas?