I’ve been banging my head against the wall trying to figure this out for a while now.
It’s quite simple (at least it sounds simple) :
-I’m rebranding my business, and as part of this, I’m creating a brand new website built from the ground up.
I’m to the part where it’s time to import all my old blog posts from my old blog to the brand new blog. (The new blog is also a new URL)
I’m successful in importing the blog posts, and it updates the post URLs, HOWEVER: the images are still being hosted from my old blog database, and I need to find a way to move all these images to my new blog database on my server.
New image URL should be: http://themodernmango.com/blog/wp-content/uploads/2012/10/0013.jpg
Is this possible? (Hosting with HostMonster)
P.S– after I get this figured out, I’m also wondering if there’s a way to automatically forward any old links laying around to the NEW blog. Example; say someone clicks on an old Facebook post with a link to my old blog, but it redirects to the new blog location.
Thanks so much!
Yes, it’s possible to move the images. You can do it a variety of ways. Server-to-server is fastest, but I can’t help you with that. The alternative is to download them all to your machine, then upload them all to the new domain. I hope you have a fast internet connection. : )
What you need to do first is download the contents of the original site’s /wp-content/uploads/ folder and then upload it to the same location (/wp-content/uploads/) on the new domain, retaining the same file structure.
Once you’ve done that, you may need to change all the references to the old location of the images in your database. If you have phpMyAdmin on your server, it makes that pretty easy too. If not, there’s a plugin that will do it for you.
And yes, you can forward people who click the old links to your new blog using a mod_rewrite rule on the old server. You’d just need to keep that old account active as long as you want the forwarding to be effective.
What you’d do is include something like the following in an .htaccess file in the root directory of the old server:
RewriteEngine on RewriteRule ^(.*)$ http://themodernmango.com/$1 [R=301,L]
You’ll have to test this to make sure I have it right. I’n not an expert on mod_rewrite. You may have to have the “blog/” in there. For more info, Google “htaccess redirect wordpress.”
Oh my goodness, thank you SO much. This is exactly what I needed to find out. I actually just ended up copying within my server, (both are hosted on the same one) the wp-contents from my old website database to the new website database folder. Then I just used the Velvet Blues plugin to update all my links and it worked like a charm.
Next I’ll try the htaccess trick. Thanks!
- The topic ‘Migrating blog IMAGES to brand new wordpress site / database’ is closed to new replies.