Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Mar 01, 2019 @ 16:44
    Martin Griffiths
    0

    Static files (.htm) don't serve from media folders (404)

    Can someone help me out here?

    I've recently rebuilt my PC and after getting everything back up and running in VS2017, I cannot get my Umbraco build to serve static files from media folders. They just 404!

    All fine on our test/production servers. But not working in IIS Express on my dev PC and I cannot seem to workout what i'm missing. Presumably in the applicationHost.config.

    I have a number of HTM files which we use in iFrames to stream in some animated SVGs embedded in the HTML.

    Thanks Martin

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Mar 01, 2019 @ 16:47
    Dan Diplo
    0

    Do you have a web.config in your Media folder? Check this...

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Mar 01, 2019 @ 16:49
    Martin Griffiths
    0

    Hi Dan

    Yup the static file handlers are declared there.

    JPGs are serving just fine, but .HTM nope!

Please Sign in or register to post replies

Write your reply to:

Draft