1 min read

Create Ghost CMS Redirects From Old WordPress URLs

Stick-figure comic: a visitor hitting a 404 dead end on the left, smoothly redirected to the right page on the right.

Ghost redirects can be created in JSON or YAML, I did mine with regex and the latter.

You only need one 301 redirect in your redirects.yaml file:

301:
    ^\/[0-9]+\/[0-9]+\/[0-9]+\/(.+): https://your-domainhere.com/$1

This will match the /year/month/day/ (or variation there-of) standard and put the ending part directly to the domain.

💡
Note: You may have to restart your Ghost instance to get the redirects to work and try it in a new/different browser (or in incognito/private mode).

Get the next one by email

One practical fix every two weeks for owners of established B2B companies. Websites, conversions and operations, written plainly.

Peter Krzyzek

eter Krzyzek is co-founder and CTO of Chykalophia, the Chicago agency that builds strategy-led websites for established B2B companies, and co-author of Made to Sell.

Comments

Read next

Keep going

All articles →

One practical fix, every two weeks

For owners who'd rather fix the leak than buy more traffic.