Streaming live at 10am (PST)

Redirecting based on current domainname

#1

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.

#2

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: https://stackoverflow.com/questions/4925528/javascript-redirect-based-on-domain-name

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

Here are some good resources:

Using custom code in the head and body: https://university.webflow.com/article/how-to-add-custom-head-and-body-code-to-a-webflow-site

Using custom code in an embed component on the page: https://university.webflow.com/article/embed

1 Like