Page 1 of 1

Broken Links after moving the blog

Posted: Fri Sep 21, 2007 4:36 pm
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!!!

Re: Broken Links after moving the blog

Posted: Fri Sep 21, 2007 5:50 pm
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

Posted: Fri Sep 21, 2007 6:47 pm
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

Posted: Fri Sep 21, 2007 8:24 pm
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!