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?
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.
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.
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
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
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
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"))
is working on a reply...