Wordpress to Ghost Migration

Marco - Dec 13 '23 - - Dev Community

Wordpress to Ghost Migration

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.

Wordpress to Ghost MigrationGhost - The Professional Publishing Platform

Wordpress to Ghost Migration
](https://ghost.org/docs/migration/wordpress/?ref=blog.disane.dev)

💡

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.

Wordpress to Ghost MigrationGist262588213843476

Wordpress to Ghost Migration
](https://gist.github.com/Disane87/33c5a54b186b9dbc7c6765ac8c5e093c?ref=blog.disane.dev)

Have fun with it and good luck!

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player