I have a web.api app that lives at http://localhost/Reporter
on my local IIS8 server. The index page for this site has a couple links to other pages- a correct absolute url example would be http://localhost/Reporter/SomeRestApi
. In the index page then, I have the following:
<a href="SomeRestApi">The Rest Api</a>
On my dev site, when I click on the link I get a valid URL. But when I deploy this to my production IIS server (which is exactly the same version as on my local machine), when I click the link it takes me to http://localhost/SomeRestApi
which is not right. It should be http://localhost/Reporter/SomeRestApi
.
I have scoured the IIS settings, carefully examined my project structure on my local IIS and the production server, everything I can think of, but I can find no differences that would explain why the origin or document root seems to be incorrect on the production site.
I am deploying this with the tools in VS2012- Maybe something is tweaked there? Where else can I look and what else can I check to try to find the problem?