• Resolved roadie

    (@roadie)


    I am developing a blog on my local computer and the wordpress and blog address is set to http://localhost/wordpress
    I will eventually move it to an external server where it will have an address such as http://www.myblog.com

    I have a few internal links and I have been searching the forum for info and am resigned to manually editing the domain name in these links when I migrate.

    But it has just dawned on me that I have dozens of images in the posts and will have thousands before I was planning to move the blog. Looking at the post content (and also in the database), the reference is stored as e.g.
    <img src="http://localhost/wordpress/wp-content/uploads/2010/07/nortsilver.gif />

    When I migrate the blog, following the advice elsewhere in wordpress.org, will these domains get changed automatically, or will I have to edit them all?

    Please tell me it’s automatic. Couldn’t find an answer searching.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Every time I move a WordPress site over to a different url all internal links and image references don’t automatically change to the new url.

    Once I have moved the site to a new address I usually just install a plugin that can do find and replace in WordPress posts / pages. Then replace “http://localhost/wordpress/&#8221; with “http://www.myblog.com/&#8221;.

    That process hasn’t failed on me yet. Although there may be better ways.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    No, that’s pretty much it. Edit the SQL or use the plugin to do that.

    Thread Starter roadie

    (@roadie)

    I’ve done it now without too much pain. I used Search Regex which sorted it out. The only other changes I had to do manually were links in text widgets.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Will migrating blog from localhost to external server break my image links?’ is closed to new replies.