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,
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?
Thanks
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...
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
Media files giving 200 Status instead of 404 when missing
Hi,
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?
Thanks
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
Glad you got it sorted.
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.