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?
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.
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?
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.
Great! Didn't notice it inserted something into 404handers.config.
@Yannick
Could you mark Lee Kelleher's post as 'The answer'? Thanks! :-)
I can confirm that this works on 4.5.2 as well.
Running with new xml schema on IIS 7, windows 7 Pro
is working on a reply...
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.