change image path from live site to development

Posted by Community Admin on 03-Aug-2018 08:24

change image path from live site to development

All Replies

Posted by Community Admin on 15-Jul-2013 00:00

hi ,

tell me  i want to run  
10.104.3.31:6070/.../
and my life site url is like  www.mysite.us.com 

my question is tell me  /greek_raspberry1.png
have live path www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0

on development 10.104.3.31:6070/.../

Please tell me how to change path of image from  
www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0
to 
 10.104.3.31:6070/.../greek_raspberry1.png

on development .




Posted by Community Admin on 15-Jul-2013 00:00

Hi Ajay,

If you get the images from the Sitefinity Libraries, you won't have to worry about this. Sitefinity will take care of the different environments.

If you hard-coded the path in your code, you should change it manually when deploying your website.
If you need the Images configured inside the HTML markup, I suggest using an <asp:Image /> control like this:

<asp:Image runat="server" ImageUrl="~/Content/Images/image.jpg" />

Kind regards,
Daniel

Posted by Community Admin on 15-Jul-2013 00:00

THANK .

question is Please tell me how to change path of image from  
www.mysite.us.com/images/product-hero/greek_raspberry1.png?sfvrsn=0
to 
 10.104.3.31:6070/.../greek_raspberry1.png

but sir my  question is i am running project on iis on  http://10.104.3.31:6070/ port

but image is fetch with www.mysite.us.com but i want image include   http://10.104.3.31:6070/  

1) my image path is not fixed. it with ~

2)only path  www.mysite.us.com is diffrent but database is diffrent form  www.mysite.us.com

please quick reply .

This thread is closed