Broken Links after moving the blog

Having trouble installing serendipity?
Post Reply
czar
Posts: 3
Joined: Fri Sep 21, 2007 4:24 pm

Broken Links after moving the blog

Post by czar »

I recently moved my blog to a new web server. That’s why the domain and the sql data base changed. But not only did I change the server and domain, I also moved the blog to a subfolder. I closely followed the instructions on http://www.s9y.org/11.html#A21 and http://www.s9y.org/198.html (btw: adding the info that you have to remove the "create DB" line from the dump file would have saved much time). Although I got most of the blog working on the new server, the links to uploaded pics are broken. It seems that changes in the config do not have effect to these links. They are not static, hence point to the new domain, but the new subfolder is not included (e.g. the links used to be olddomain.com/uploads/pic1.jgp now they should be newdomain.com/subfolder/uploads/pic1.jpg but they are newdomain.com/uploads/pic1.jpg)
Since there are a couple hundred pics, I can’t edit all these links manually). Hope sb. Can help! THX!!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Broken Links after moving the blog

Post by garvinhicking »

Hi!
(btw: adding the info that you have to remove the "create DB" line from the dump file would have saved much time)
That line comes from the tool you use to create a dump, you can instruct it to not contain this...
Although I got most of the blog working on the new server, the links to uploaded pics are broken. It seems that changes in the config do not have effect to these links.
Exactly. You need to manually fix the links in every of your entries, or try to see if you can use automatic Search+Replace on your SQL database dumpfile...sorry :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
czar
Posts: 3
Joined: Fri Sep 21, 2007 4:24 pm

Post by czar »

Hmmm...this is no good news....but thx anyways!

does this apply to the links in the style sheet as well? (because the background image is missing, too) Seems like a can't easily change the templates anymore.

cheers, czar
czar
Posts: 3
Joined: Fri Sep 21, 2007 4:24 pm

Post by czar »

ok......got it all working!

used search and replace to manually change the links in the db.
postive side effect: increased my knowledge about mySQL.
thx again for the quick reply!
Post Reply