I’m deploying Jekyll to Netlify and my blog posts have a pretty typical URL structure of domain.com/YEAR/MONTH/SLUG
My plan is to remove the /year/month portion of some of my posts, but I want to make sure that the old URLs work.
I saw the part of the documentation where placeholders can be used in the origin and target paths, but I’m worried about how this will be handled with pages where the first thing after the domain is NOT a year.
For example, I do want to redirect
but I do not want to redirect an origin URL that is
Does that make sense? Is there a way to check and make sure that the url is only being redirected if it starts with a year (4 digit number)?