hi Community, currently I’m working on defining some wildcards for my project. I would like to know if there is a way to create a regex that updates for example: /article/... to /article/read/..., but excludes cases where the URL already starts with /article/read/...?
using regex I can use this:
(?<!/article/read)(/article/[^/]+)
but I’m not sure if that’s possible with the wildcard specification
Webflow is not designed for that. I’d look at using Cloudflare redirects instead for this, which give you control over an ordered set of rules. You’d ignore /article/read/* and then redirect /article/*
Webflow doesn’t have an “ignore” rule, and you can’t redirect to self without risking circular redirects… so I don’t think there’s a good hack around that limitation.
Another option might be to do script based redirects on your /article/* pages and on your 404. But not ideal for SEO since the page would load with a 200 or 404 initially.