Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

URL Re-Write creates "Object Moved" page for missing files with link to physical path of 404 page on server

$
0
0

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.


Viewing all articles
Browse latest Browse all 3561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>