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:
example.com/2023/12/12/my-great-blog-post

and in Ghost they defaulted to:
example.com/my-great-blog-post

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?

thanks!

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