What should I do if images aren’t displayed on a site running with extensionless URLs

HelenaG Grulichova asked on November 28, 2012 03:47

What should I do if images aren’t displayed on a site running with extensionless URLs

Correct Answer

HelenaG Grulichova answered on November 28, 2012 03:47

If your images aren’t displayed correctly with the default extensions (e.g. .jpg, .gif, .png, etc.), but everything is working fine when you remove the extension or change it to .aspx, add the following code to your web.config file under the <system.webSerer> section:

<httpErrors existingResponse="PassThrough" />
<modules runAllManagedModulesForAllRequests="true">

 
-md-

0 votesVote for this answer Unmark Correct answer

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