Hello,
I have two URLs leading to the same site in Webflow:
www.myGermanSite.com
www.myEnglishSite.com
And I have two language versions of the same website, they are currently located like this:
German: www.myGermanSite.com (Homepage)
English: www.myGermanSite.com/english
Of course it would be nice if a user types in “www.myEnglishSite.com” that he lands directly on www.myGermanSite.com/english
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 “myEnglishSite.com” to “www.myGermanSite.com/english” 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.
Johannes