Wordpress to Ghost Migration

Why I switched from WordPress to Ghost, I'll explain here

Wordpress to Ghost Migration
Photo by Stefano Pollio / Unsplash / Image / Image

My old blog was getting a bit long in the tooth and I didn't like the technology behind it (Wordpress) for a long time. That's why I've now migrated from Wordpress to Ghost.

Content-Migration

The migration is quite easy to do with Ghost's documentation:

Official guide: How to migrate from WordPress to Ghost
Everything you need to know about working with the Ghost professional publishing platform.
You may have to change the user of the posts afterwards (if you are using a different user in Ghost). However, this is very easy to do by deleting the newly created user.

All posts of the deleted user will then change to your user.

Redirect published posts via .htaccess

It is now also important that all already published posts are redirected to the new URL. This is important for users as well as for SEO.

To do this, I also downloaded the JSON file and created a NodeJS script that automatically generates the redirects for me.

I can then easily integrate these redirects into my .htaccess file in Wordpress and all posts that have already been published will be moved to my new blog, yay!

I have provided you with the script as a Gist:

Wordpress to ghost redirections creator
Wordpress to ghost redirections creator. GitHub Gist: instantly share code, notes, and snippets.

Have fun with it and good luck!