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
Im using 8.18.4 - when a media file is missing it is giving a status of 200.
www.xxx.com/media/3456667/mymissingfile.pdf gives a 200
www.xxx.com/anyurl/3456667/mymissingfile.pdf gives a 404
Any ideas how I can get a 404 status for missing PDFs in the Media?
mmm, that's weird, I get a 404 if I try a fake media url (using 8.18.4)
Apologies - I forgot to mention that we are using
UmbracoFileSystemProviders.Azure when setting up on Azure.
Is yours using this?
no, I'm not using UmbracoFileSystemProviders.Azure sorry.
No problem - I just noticed if we take Custom Errors OFF then it gives a 404
I think we have found the fix:
Turn Custom Errors OFF and update HTTPErrors to
<httpErrors errorMode="Custom" existingResponse="Replace">
Glad you got it sorted.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted