Webflow wildcards, exclude if start with

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

Thanks in advance for the help!

Hey Arley,

Are you talking about redirects?
Webflow’s redirects are not regex-based.

yes, but is there a way to implement that kind of redirection using a wildcard?

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.

1 Like

thanks for giving me quick feedback about it, I didn’t know, I’ll try those options as well :pray: