Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • SinkyPars 132 posts 175 karma points
    Jan 28, 2013 @ 13:30
    SinkyPars
    0

    .asp pages should show 404

    Hello all,

    I have a little issue in that a clients old site was classic asp and we have migrated them to Umbraco.

    Unfortunately, users who visit old asp pages recieve a blank 404 instead of the one working in umbraco.

    /rubbish.asp = blank 404

    /rubbish/ = Umbraco 404

    Any help is much appreciated.

     

    Scott

     

  • Mike Chambers 636 posts 1253 karma points c-trib
    Jan 28, 2013 @ 15:11
    Mike Chambers
    0
    <httpErrors errorMode="Custom">
          <remove statusCode="404" subStatusCode="-1" />
          <error statusCode="404" prefixLanguageFilePath="" path="/1000.aspx" responseMode="ExecuteURL" />
        </httpErrors>

    add this to your <system.webServer> tag in the web.config...

    it forces all errors to an unfound aspx page.. which in turn redirects to your umbraco 404 page... 

  • SinkyPars 132 posts 175 karma points
    Jan 28, 2013 @ 15:42
    SinkyPars
    0

    Hi,

    When I use this the my situation becomes:

    /rubbish.asp = IIS7 404, nasty error

    /rubbish/ = Umbraco 404

    I wonder if I need to add a mime type :S

    Scott

  • SinkyPars 132 posts 175 karma points
    Jan 29, 2013 @ 10:08
    SinkyPars
    0

    Strange that no one seems to have a solution for this :S

  • Yakov Lebski 591 posts 2345 karma points
    Jul 05, 2019 @ 18:35
    Yakov Lebski
    0

    please check that asp support installed on IIS

Please Sign in or register to post replies

Write your reply to:

Draft