title: MVC4 Website/Web Application Recommended IIS Directory Structure
body: <p>I have an MVC4 web application</p>
  
  <p>In setting it up on IIS7.5 I added the application to the "Default Website" and set up a virtual directory under <a href="http://localhost/myApplication" rel="nofollow">http://localhost/myApplication</a></p>
  
  <p>However, this forced me to change many of my controller calls (specifically js ajax calls) which I previously called in Cassini like "/Home/Index", I now had to change them to "/myApplication/Home/Index" for them to work on my local IIS.</p>
  
  <p>NOW, when I publish it to a remote hosting server I have to change it BACK to "/Home/Index" for it to work.</p>
  
  <p>This cannot be the most productive way to traverse the development -> testing -> production cycle.. What step am I missing? </p>
  
  <p>I tried to create the applications virtual directory on on just <a href="http://localhost/" rel="nofollow">http://localhost/</a>  without appending the application name so that I can call "/Home/Index" at all three stages but it complains that <a href="http://localhost/" rel="nofollow">http://localhost/</a> is already mapped to inetpub/wwwroot.</p>
  
  <p>Thanks for your time.</p>