Search code examples
asp.net-mvc-2iis-6actionvirtual-directory

Map a virtual directory to an ASP.NET MVC action


For our newsletter application, we want to hide our application directory by using a virtual directory on the main website. So for instance, our app is at app.example.com and the viewer is at app.example.com/article/view/id. We would like to use something like example.com/newsletter/id as a link in the newsletter for the public to view. Is this possible? If so, how?

This is so we can hide the structure of the application from the readers so people don't start browsing the structure of our application. Yes, we do have security on the application.

I believe we are on IIS 6.


Solution

  • We decided to write a page that pulled the html from myapp.domain.com to domain.com/app.aspx. We didn't want to mess with the Global file at this time.