Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have used the customErrors feature in Umbraco to load a specific page when someone tries to access an incorrect URL. It works great.
However, if someone tries to load a document from the media library that doesn't exist, IIS simply reports "The resource has been removed".
Is there a way to force 404 in the media section to do as content 404's do and load my chosen page?
Thanks
Rich
It's basically because Umbraco only handles .aspx errors and nothing else. But see this SO post by Seb:
http://stackoverflow.com/questions/4471683/setting-errorpage-in-umbraco
Hi Dan,
Sorry for the delayed response, I've been on extended leave.
This is a perfect solution to the problem.
Thank you so much.
My site is also returning the default IIS 404 page for media files (.doc, .pdf, etc..), instead of Umbraco's. If I set <httpErrors existingResponse="PassThrough" />, I simply get a blank page when I navigate to a non-existent doc.
<httpErrors existingResponse="PassThrough" />
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.
Continue discussion
Why does media cause a 404 differently to content?
Hi,
I have used the customErrors feature in Umbraco to load a specific page when someone tries to access an incorrect URL. It works great.
However, if someone tries to load a document from the media library that doesn't exist, IIS simply reports "The resource has been removed".
Is there a way to force 404 in the media section to do as content 404's do and load my chosen page?
Thanks
Rich
It's basically because Umbraco only handles .aspx errors and nothing else. But see this SO post by Seb:
http://stackoverflow.com/questions/4471683/setting-errorpage-in-umbraco
Hi Dan,
Sorry for the delayed response, I've been on extended leave.
This is a perfect solution to the problem.
Thank you so much.
Rich
My site is also returning the default IIS 404 page for media files (.doc, .pdf, etc..), instead of Umbraco's. If I set
<httpErrors existingResponse="PassThrough" />
, I simply get a blank page when I navigate to a non-existent doc.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.