Redirecting based on current domainname

Hello,

I have two domains, a .nl and a .com version. I would like to redirect the .com version to .com/homepage/en and the .nl to .nl/homepage/nl.

Is this possible in webflow, or should I do this via the domain name hosting? The project has CMS hosting and is hosted in webflow.

Thanks.

Hi @ElviraNL, thanks for your post. It is not possible to do this natively, however you can use a javascript redirect, here is a post on stack overflow that may help: JavaScript redirect based on domain name - Stack Overflow

This might not meet your need, but some good info there.

Here are some good resources:

Using custom code in the head and body: Custom code in head and body tags | Webflow University

Using custom code in an embed component on the page: Custom code | Webflow University

1 Like