Copied to clipboard

Flag this post as spam?

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


  • Antony Wong 14 posts 43 karma points
    Apr 14, 2014 @ 18:45
    Antony Wong
    0

    Image Problem

    Hi

    I have set up a website e.g www.testsite.com.  Everything is fine and I even added the hostname to the homepage.

    However, when I browse to testsite.com (without the www) the images do not show.  I checked on google chrome and the images are linked as http://testsite.com/media/1/image.png.


    Is there something I need to do to get the images working without the www?

     

    Thanks

     

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Apr 14, 2014 @ 20:00
    Jan Skovgaard
    0

    Hi Antony and welcome to our :)

    What version of Umbraco are you using?

    Does the image exist on your server? The node for the media/image may appear but if you have made a build of a local version and setup Umbraco on a server and have forgot to copy over the /media/ folder then no image will be displayed.

    If it's possible for you to post a screendump please do :)

    Also it might be a good idea to check the /app_data/logs file to see if it reveals any useful information if the above check does not solve the issue.

    Looking forward to hearing from you.

    /Jan

  • Antony Wong 14 posts 43 karma points
    Apr 15, 2014 @ 10:33
    Antony Wong
    0

    Thanks for the reply. I am currently running on Umbraco 6.2.

    The image does exist on the server as it works on the www.testsite.com.  Its just that when i navigate to site without the www, the image comes up as the Umbraco U image.

    I checked the logs and nothing concerning is in there.

     

    Thanks

     

     

     

     

  • Antony Wong 14 posts 43 karma points
    Apr 22, 2014 @ 15:53
    Antony Wong
    0

    Hi,

    Does anyone know of a solution for this?  I tried adding testsite.com to the HostNames and it doesnt work either.

    I also looked at how the images are rendered on the razor and the way I am outputting the images using

    Umbraco.TypedMedia(Model.Content.GetPropertyValue("exampleImage"))

     


  • 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.

Please Sign in or register to post replies