Using wildcards to match part of a string


Is it possible to use an asterix to match part of a url, like:
/:year/:month/:day/*.html /posts/:splat

It doesn’t seem to be working for me :(, other redirect rules work fine.

If not, are there any workarounds? I’m trying to redirect links from my old URL scheme and lose the .html part.


hi @heems! If you use the forum search for “wildcard redirect” you’ll find a variety of posts that address this issue from different perspectives. I recommend you work through some posts there and then ask again if you can’t fix it :slight_smile: