Routes.yml file help for a Wordpress blog migrations?

I’m using Ghost Pro, and I’ve converted over 3,500 old blog entires into the new Ghost system. Unfortunately, I have thousands of links all over the web and my social media profiles pointing to old blog entires in Wordpress where I had the date inside the URL.

So the old URLs were often:

and in Ghost they defaulted to:

I’ve read a bit of the docs but I can’t figure out a simple way to get Ghost to try cutting dates out of URLs before serving readers with a 404.

Is there any stock simple regex to accomplish this and ask browsers to chop out dates in URLs and try the titles alone to avoid future 404s?


Yes! You want a redirects.yaml file. Docs are here. You can set up a regex that does this.