Not able to load image properly RRS feed

  • Question

  • User944339287 posted

    hi guys.. all my images cannot be displayed properly when I open [home.html] in localhost.

    * And seem images will be displayed as http://localhost:52439/website/home.html when I open image at http://localhost:52439/website/images/banner.png

    But it's displayed properly if i open home.html in file:///C:/Works/projects/mywebsite/home.html

    Any idea?

    Thursday, May 9, 2019 7:47 AM

All replies

  • User753101303 posted


    When  you have this kind of problem you should :
    - use "view source" to check which path is used. Could it be that you are using a local path such as file://c:Works/../banner.png rather than http
    - use F12 network in your browser to see what happens and for example that you don't try to get them from http://localhost:52439/images/banner.png rather than from http://localhost:52439/website/images/banner.png

    In short before tying to fix the problemn, use debugging tools and few extra minutes to first make sure about what is the exact problem. Then only you can easily fix the actual problem you found.

    Thursday, May 9, 2019 9:33 AM