Local environment returns 404 on all media 'getmedia'

Ross Burmeister asked on April 16, 2019 21:51

I'm trying to setup a local environment for Kentico. It's already set up in staging and everything works fine. The local setup returns a 404 on all images. I've tried updating the web.config along with a couple other basic things. How can I fix this?

Recent Answers


David te Kloese answered on April 18, 2019 10:51

Hi,

some questions that might help us help you:

  • So you want to setup a working copy of your staging environment locally?
  • Do the images show in the Media library application?
  • what are the local urls that don't work? are they completely off (like you run the site on localhost url and the images 404 on something else?) or does the url seem correct, but just doesn't work?
  • where are the images stored?
    • online (like blob storage)
    • in the database
    • On disk (if so can you verify the images are actually there)
0 votesVote for this answer Mark as a Correct answer

Neil Powers answered on April 23, 2019 17:09 (last edited on April 23, 2019 17:11)

Check the output filter --> XHTML --> Excluded XHTML filter URLs. If this box is empty for the site change to having a forward slash.

In your web.config do you have a < modules runAllManagedModulesForAllRequests="true" > or just modules? Should be the latter usually.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.