Hello - When using URL Re-Write to redirect HTTP requests to HTTPS we get an "Object moved to here." page. This isn't necessarily a problem, but the "here" link contains the physical path to the error page:
https://<site name>/c%3a%5cinetpub%5ccusterr%5cen-US%5c400.htm%3faspxerrorpath%3d%2ftest.aspx
The url re-write rule is:
<rule name="HTTPS Rule" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" redirectType="Permanent" />
</rule>
The physical path being displayed is being reported as a security issue and I need to either eliminate the redirect page or have the link point to the 404 page. We are using the standard issue IIS custom error pages with default settings. Any help would be greatly appreciated.