How to Configure IIS 7 to Use a Subdirectory as the Default Document

asp.net-mvciisiis-7rewriteurl

So I have a website running on a discount asp.net account, and I put an asp.net mvc app in a subdirectory. If my url is 'www.website.com' and my app is in directory 'sample', then 'www.website.com/sample' will execute the mvc app.

My problem is that I want the app to be shown when you go to 'www.website.com' not just 'www.website.com/sample'. I have access to the IIS Manager, and I'm sure there are many ways to do this.

What's the best way to do this?

Best Answer

You need to configure HTTP Redirection on the web site. Make sure that the HTTP Redirection role service of the Web Server role is installed. Once that's done you can select your site in IIS Manager and double click the HTTP Redirect icon in the IIS area of the features view to configure redirection. (Sounds complicated, huh) - ;)