Quick-search for anything
⌘F

Migrating from Medium

Migrate from Medium and import your content to Ghost with this guide

Self-service Migration

Most publishers can do this right now using our Medium migrator.

Image showing Medium importer in Settings > Advanced > Import/Export

Using custom domains

If you’re using a custom domain on Medium, you’ll need to implement redirects in Ghost to prevent broken links.

Medium appends a small random ID to each post, which is removed in the migration step above. The regular expression below removes that random ID, but does not affect preview links.

# redirects.yaml
301:
    ^\/(?!p\/?)(.*)(-[0-9a-f]{10,12}): /$1

302:

This means that if a visitor or crawler goes to https://mysite.com/awesome-post-a1b2c3d4e5f6, they will automatically be redirected to https://mysite.com/awesome-post.


Summary

Congratulations on your migration to Ghost πŸ™Œ. All that’s left to do is check over your content to ensure the migration has worked as expected. We also have a guide on how to implement redirects to make your transition smoother.