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.