I have a simple setup. I have a wordpress website setup at the root of a subdomain api.website.com. This will act as documentation for an API. I then have the API itself, built with asp.net and i want this to be a virtual application so that a user can query api.website.com/v1 as the base url for the API. The problem i am having is that wordpress is taking priority and is redirecting every request i make to /v1 to the 404 page. Sometimes it redirects to an actual page, but either way, the asp.net virtual application is not getting hit.
Here is the site info that i pulled from the applicationHost.config.
<site name="API" id="8" serverAutoStart="true">
<application path="/" applicationPool="API">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\API\Documentation" />
</application>
<application path="/v1" applicationPool="API">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\API\SourceCode\API" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:963:" />
<binding protocol="http" bindingInformation="*:80:api.website.com" />
</bindings>
</site>
How to i make the server give priority to the virtual application so that if it picks up /v1 in the url it will go to the asp.net site instead of the wordpress site. I am running iis 8.5 on a windows 2012 R2 server.
Edit. I tried setting this same config up using IIS installed on my windows 8 laptop. The config i want is working here, so it looks like it might be IIS on the server that is causing this, but i still cant find out what could be causing it.