Wednesday, March 27, 2013

Nest an ASP.NET web site within an ASP.NET web site.

In IIS, if you want to run a web site within a web site with ASP.NET the "Covert to Application" trick should accommodate. If you were to host a vanity website for a business at example.com and then host a subtext ASP.NET blog at www.example.com/blog/ you would prep example.com as a web site and then right-click on the "blog" folder within the web site within Internet Information Services (IIS) Manager to pick "Convert to Application" which will allow the contents of the folder, findable by a URL within a different web site, to run as its own web site. The contents of the folder would see the folder as the root and not look upward to the root of the greater web site for the bin folder and Web.config.

No comments:

Post a Comment