I have the following httpredirect in the web.config which is being ignored. This web.config is on the root of a hybrid webforms and MVC web application. Both locations in the example below are webforms pages.
<configuration>
<system.webServer>
<httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Permanent">
<add wildcard="*/foldername/" destination="/anotherfolder/file.aspx" />
</httpRedirect>
</system.webServer>
</configuration>
This is on localhost btw but the httpredirect should work on both the localhost and the live server. What am I doing wrong?
NOTE: There are a lot of instructions on the web pointing to the URL Rewrite IIS module. I can't install this on the live server so that's not an option.