ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
Development Server and Broken Img src Links Question?
Posted 16 years 9 months ago
What is best practice for developing a full development environment site prior to going live?
I usually just go in and change all the broken image links --- and before with 1.x I avoided using the JCK / or upload image functions of the wysiwign when doing pages to avoid this ---
but now, with my latest site ...
I have hundreds of images to get in place....
and will be at
myhostingsite.com/newsite/index.php
to eventually be multihosted at
just newsite.com
but the newsite.com is their current live site ----
so all my uploaded images will be broken URLs when the site gets ported over from the DEV environment...
there will be lines like
img src="/newsite/images/myimage.gif"
when they should be
img src = "/images/myimage.gif"
So the question is what is the best way to develop a full site locally -- or on a dev server --- then flip one switch and go live!
which is then IN the database --- so even though the automagically thing you described does happen if you use MOSIMAGE --- it doesn't if you use the editors ----
so I have just determined this ---
after using the edtior to upload I am clicking to source view and removing the HARD link to the site root -- and just deleting it bak to the images/ part ----
Also -- I referenced the MOSIMage -- but I am in 1.5 --- I assume the IMAGE button works the same way.
Re: Development Server and Broken Img src Links Question?
Posted 16 years 9 months ago
strange, that is.
I will check to confirm the next time i'm working with JCE but that is the same workflow I use and have never had a problem. I develop a site on a subdomain on localhost and use joomlapack to move it to the live server.