title: Publish WebApi to Subfolder
body: <p>I have an out-of-the-box Visual Studio 2013 SPA using WebApi.  I added Twitter authentication to Startup.Auth.cs and all of it works just fine when I publish to the root of an IIS web site or when I debug in VS with localhost.</p>
  
  <p>What I can't figure out is how to publish the project to a subfolder like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kR1Ik.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/kR1Ik.jpg" alt="enter image description here"></a> </p>
  
  <p>In other words, <a href="http://localhost/api" rel="noreferrer">http://localhost/api</a></p>
  
  <p>The site itself works.  It is the ReturnUrl from Twitter that always redirects to <a href="http://localhost/#" rel="noreferrer">http://localhost/#</a>  It includes the correct access_token but in this format:</p>
  
  <p><a href="http://localhost/#access_token=fzgSLjF4W0QAHlhsNFZI" rel="noreferrer">http://localhost/#access_token=fzgSLjF4W0QAHlhsNFZI</a>...  </p>
  
  <p>If I manually type in "api/" before #access_token it opens the default Index page and is authenticated via Twitter.  I have tweaked every setting on the Twitter side, javascript, and .cs.  I just can't find a solution other than Publish to a root web site.  I would like to publish to a subfolder application.</p>
  
  <p>Suggestions?</p>