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.
Tagged: Exception
This topic contains 1 reply, has 2 voices.
Last updated by Prosenjit Barman 1 year, 7 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
April 28, 2023 at 7:44 am #13555159 | |
Jerzy Afanasjew |
Tell us what you are trying to do? I am trying to set up new domains per different language versions for my site hidden link. I am setting up hidden link and hidden link. Is there any documentation that you are following? I tried following WPML guide but it didnt cover setting up DNS records and Im struggling with that. My CDN and DNS zone provider instructed me to point new domains to CDN ip 151.139.128.10, but that only caused a redirection to protestkit.eu. On page refresh it seems to work, but when I try to enable the domain in WPML language settings the automatic check upon saving settings results in "failed". Then I tried adding new delivery domains to my CDN and also a new site on my CDN-end, but that attempt simply causes "page unknown" error from my hosting provider. Please help me enter correct DNS zone records to configure new top level domains to use with WPML, thank you. |
May 2, 2023 at 6:59 am #13567217 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I understood what you're looking for. In order to make the different domains per language work correctly, you need to pay attention to the following points. 1) Have the domain point to the same server as the original domain. I checked the screenshots you've shared and found that the "A Records" of other domains are different than the main domain(hidden link). Instead of defining the CDN IP in the "A Record" for other domains, use the actual IP defined in the "A Record" for the main domain. 2) Create aliases for the new domain (no redirections setup or anything is needed, just set it up as an alias. If you are not sure about that, you can ask your hosting support to do this for you) 3) If the alias is set up correctly, you'll be redirected to the main domain when you try to access the other domains(you might have to wait for the DNS to spread, and this could take from only a few minutes to 48h) 4) Then, you can go to WPML -> Languages -> Language URL format and validate the domains Kindly check this documentation also to get a better understanding of the process- https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#2-configure-the-dns-settings Please let me know if these explanations help or if you need further assistance. Best regards, |