Regex-style redirects for static pages (like NGINX rewrite rules)

Hi everyone,

We’re currently managing a large multilingual site in WeWeb (Private Villas Mexico), and we’ve recently updated our URL structure for villa pages.

For example:

/es/vacation-rentals/villa-la-semilla/ → /es/villas-en-renta/villa-la-semilla/
/fr/vacation-rentals/villa-la-semilla/ → /fr/maisons-de-vacances/villa-la-semilla/

Because these property pages are static in WeWeb (each villa has its own page), the current redirect system requires us to manually create one redirect per property, which is obviously not scalable.

I’d like to know if there’s any way to use pattern-based or regex-style redirects directly within WeWeb — similar to how we’d handle it on a server or CDN, e.g.:

/es/vacation-rentals/* → /es/villas-en-renta/:splat 301
/fr/vacation-rentals/* → /fr/maisons-de-vacances/:splat 301

or any equivalent approach using WeWeb’s current redirect functionality.

Essentially:

  • Can WeWeb handle wildcard or regex redirects?

  • If not natively, is there a recommended workaround (e.g. via Cloudflare, Netlify _redirects, or WeWeb’s router API)?

Thanks in advance, this would make localized URL management much easier for teams working at scale.

Hi Sofiane :waving_hand:

Super interesting question, I’ll see if the tech team has an answer for your question.

Thank you, I appreciate it!

Hello Agustin! Any news from the Weweb team?

Thank you :slight_smile:

I think this is possible only with something like Nginx - e.g. when self-hosting, WeWeb’s redirects are very trivial and last time I checked they were limited to a certain number.

Not ideal

1 Like