Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by jasonC-27 3 years, 1 month ago.

Assisted by: Subash Chandra Poudel.

Author Posts
March 22, 2022 at 6:18 pm #10850809

jasonC-27

Hello: I am trying to explain to my host how to setup the DNS records to accomplish the different domain per language setup. I have read through the instructions on the WPML SITE, but find them to be a bit vague on what exactly needs to happen. I have 3 domains (7storiesofhope.com - the main site, 7storiesofhope.eus, and 7storiesofhope.es). I have the last two registered and pointed to the name servers of the main site's host. There I have the domain set to DNS only and A records setup to point to the IP of the main site. However, it's still not working, and I'm not sure if this is exactly what I'm supposed to do or not. Any help would be greatly appreciated. Thanks!

March 23, 2022 at 8:35 am #10854169

Subash Chandra Poudel

Hi there,

Sorry for the issues you are having, I will try to help you as much as I can here.

There is no fixed rule on how the DNS or NS should be set up, it depends on how your Host setups the server and domains. Basically, all the domains you want to use should be pointed to the same host and same root directory where your WordPress files are located. After all the domains are pointed to the same WPML enabled WordPress root folder, WPML can then serve different languages on different domains.

If you haven’t already checked the link please check the docs on the next link for more details
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

I tried checking the domains 7storiesofhope.us and 7storiesofhope.es (please let me know if they are different domains) at my end but looks like the domains are not registered yet? I recommend checking with your domain and hosting provider and making sure the domains you shared and the host are set up properly.

Regards,
Subash

March 23, 2022 at 1:38 pm #10857461

jasonC-27

Subash,

Thank you kindly for your help. The one domain (hidden link) has been purchased and is setup, but it is forwarding to 7storiesofhope.com. I haven't purchased the .es domain yet.

I wrote the host and this is what they told me.

Thank you for contacting DreamHost support. I'm very sorry about the
issues you're having! Unfortunately the way you set it up (dns only and
then pointing to the IP address of the other site) will not work since
the 7storiesofhope.eus domain basically wasn't correctly setup for the
apache service to recognize the requests. I went ahead and just set
7storiesofhope.eus as fully hosted and pointed to the same directory and
user as 7storiesofhope.com then removed the A records you grabbed from
your other site. The site is loading but it is also going to flip to the
.com because WordPress always 'redirects' sites to whatever the site/home
URL is set to. But that should get you all setup where you're not seeing
the site not found error and the site is loading what it's supposed to.
Let me know if you need any further assistance though and I'll be happy
to help.

Any further advise you can give would be greatly appreciated. Thank you very much!

-Jason

March 23, 2022 at 3:03 pm #10858637

Subash Chandra Poudel

Hi Jason,

Thank you for the updates.

After your host points the domain on the same server and directory as the main WordPress folder, you can set up a different domain per language from WPML -> Languages page by scrolling to the “Language URL format” section as explained in the next link:

https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

When I visit your domain 7storiesofhope.eus I see an SSL error at my end. So, first, please confirm with your host that the domain is set up/pointed correctly to the default WordPress directory and SSL is set up correctly.

Regards,
Subash

March 24, 2022 at 11:48 am #10867069

jasonC-27

My issue is resolved now. Thank you!

I know that it's different to have different setups, but it might be nice if there were 2-3 scenarios to help people set this up. I found the documentation online to be very scarce. At the end I got it to work, but it was confusing. Thanks for your help!