Redirecting subdomain to page in different language

Hey and thank you all in advance!

Our main site is in Finnish at has https://www.ranchmarkkinointi.fi/ as that is its main domain.

We then use Multilingual to also have our site in English.

How can I direct our English subdomain https://ranch.agency to https://www.ranchmarkkinointi.fi/?lang=en ?

I assume with a fairly short code using wix-location, but I’ve searched my best and can’t find a solution.

I’d think that more businesses might have this need: have a specific local domain for different language versions of their site.

I found a few other people asking the same question, but without the detail on the language version, but there didn’t seem to be a clear answer.

Thank you again for your time and help!

Have you read through all of the Wix Support pages for Wix Multilingual.
https://support.wix.com/en/wix-multilingual/wix-multilingual-basics

https://support.wix.com/en/article/corvid-tutorial-redirecting-visitors-based-on-browser-language

https://www.wix.com/corvid/reference/wix-window.html#browserLocale
https://www.wix.com/corvid/reference/wix-location.html#to

Have a read of this previous forum post too as some people have had issues with the Wix tutorial that is listed above for redirecting visitors based on browser language.
https://www.wix.com/corvid/forum/community-discussion/auto-detect-language-based-off-browser-solved

Also, if you wanted to dig deeper, you could look at using Geolocation.
https://www.wix.com/corvid/reference/wix-window.html#getCurrentGeolocation

Andreas Kviby had a good example of it here in this old post, however he has moved and so you will not be able to use it, however you can gain a little insight from what is shown.
https://www.wix.com/corvid/forum/community-discussion/working-with-localized-dynamic-pages-in-wix-code

Thank you so much Givemeawhiskey! This should get things done for me :facepunch: