ASPX templates
Version 7.x > ASPX templates > images not displaying on master template for multi-site set up View modes: 
User avatar
Member
Member
esolutions - 3/31/2014 12:23:26 PM
   
images not displaying on master template for multi-site set up
I created a new site within an existing client's instance of Kentico, client.dev. I added another host header called myclient.dev to the existing client.dev site in IIS I created a new folder called myclient under the App_Themes folder and copied the img folder, including all of the images, into there I updated all references to the images in my master template to reflect this new path i.e. /App_Themes/myclient/img/

When I load the site it displays all images as broken, for example the logo, logoMCN.gif. When I navigate to http://myclient.dev/App_Themes/myclient/img/logoMCN.gif it displays “page cannot be found” However when I navigate to http://client.dev/App_Themes/myclient/img/logoMCN.gif the logo displays.

Even when I put the absolute URL to the image in the master template, i.e. http://client.dev/App_Themes/myclient/img/logoMCN.gif, while not ideal, doesn't even work…

Is there a way to display the images on a multi-site set up?

User avatar
Member
Member
esolutions - 3/31/2014 12:30:54 PM
   
RE:images not displaying on master template for multi-site set up
Just an update...I added the absolute url (http://client.dev/App_Themes/myclient/img/imagename) for the images in the master page template for the myclient.dev site I ended up re-starting the application and got the image to display. However, this is not ideal as we will then have to update all the URL's prior to going to production.