Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Yannick Smits 321 posts 718 karma points
    Apr 29, 2010 @ 17:29
    Yannick Smits
    0

    After notfoundhandler?

    I already have a notfoundhandler that functions as a catchall 404 defined in /config/404handlers.config. It seems this one fires before yours so your code is never reached. Could you suggest a fix for that?

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Apr 29, 2010 @ 17:52
    Lee Kelleher
    0

    Hi Yannick, the NotFoundHandlers run in order as specified in the 404handlers.config, so if you move your catch-all 404 to below the 301 one, it should work.

    Cheers, Lee.

  • Yannick Smits 321 posts 718 karma points
    Apr 29, 2010 @ 18:17
    Yannick Smits
    0

    Great! Didn't notice it inserted something into 404handers.config.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    May 12, 2010 @ 20:04
    Stefan Kip
    1

    @Yannick

    Could you mark Lee Kelleher's post as 'The answer'? Thanks! :-)

  • Bo Petersen 28 posts 61 karma points
    Oct 24, 2010 @ 21:56
    Bo Petersen
    0

    I can confirm that this works on 4.5.2 as well.

    Running with new xml schema on IIS 7, windows 7 Pro

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies