Streaming live at 10am (PST)

How to use JavaScript forwarding


I have two URLs leading to the same site in Webflow:

And I have two language versions of the same website, they are currently located like this:

German: (Homepage)

Of course it would be nice if a user types in “” that he lands directly on

Webflow doesn’t offer the possibility to setup DNS-forwarding TO a sub-domain. I also don’t want to duplicate the site as it means paying for an additional CMS-hosting and maintain two different pages. My idea therefore is to forward all user, who type in “” to “” with Javascript. And this is my script (added as custom head code):

Unfortunately this doesn’t work and I can’t explain why. Does Webflow somehow forbids this kind of forwarding? Any help solving this (or other suggestions how to solve this problem in general) is much appreciated!

Thanks in advance.