This is a tutorial for people who want to create a multilingual website by duplicating their content and then connecting a sub-domain eg en.yourdomain.com to the sub-directory on your site with the new language eg www.yourdomain.com/en.
This is how I did it on my site:
So my main-language site is hosted on the domain indigoenergizer.com. I also made an English version by duplicating all of the pages, translating them and putting them in a folder with a sub-directory to indigoenergizer.com/en/home. (“en” is the name of the folder where all of the duplicated sites are and “home” is the main page).
For convenience reasons I wanted people who spoke my main language to connect to my site just using the domain name (indigoenergizer.com) and for others so that they don’t need to write down the entire title, to connect via the url “en.indigoenergizer.com”.
So you need to redirect everyone who writes “en.indigoenergizer.com” to “www.indigoenergizer.com/en/home”.
If you want to do that you have to do it in your domain registrar settings and there is nothing you have to do on webflow. My Domain is hosted on Domain.com and this is what I did:
- Add a sub-domain en.indigoenergizer.com and point it to the sub-directory /en/home
- Add an A record with the name “en” and point it to your registrar’s site (Mine is Domain.com and their IP is: 188.8.131.52)
- This has to be done by a support person.
created a code inside of the installation folder of the sub-domain to command any visitors to go directly to the www.indigoenergizer.com/en/home
this is the code:
- Normal (-> I don’t know why this is here, I just copied what the support guy send me but it appears on the blank redirection page)
<META HTTP-EQUIV=Refresh CONTENT="0; url=https://www.indigoenergizer.com/en/home">
(In the “META” type in your url with the desired sub-directory you want people to be forwarded to)
And that’s it, it works.
It took 10 minutes to propagate. Just be sure to clear your cache and cookies before trying to access it again or use a different browser to test it.