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 3 voices.

Last updated by benjaminE-20 1 year, 10 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 1, 2023 at 8:25 pm #13566265

benjaminE-20

Hi

On Dantra.dk, I am trying to specify diffrent URL's for the two alternative languages on the site. I have the DNS setup for dantra.eu and dantra.se as you suggest in your guide. And when testing/saving the setting it says validated. But when I load either of the two URL's the standard site just loads not the translated site.

Best regards
Nicolai Jensen

Skærmbillede 2023-05-01 222434.png
May 2, 2023 at 6:57 am #13567215

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Nicolai,

probably domain settings have not been set properly from your side, as there is redirect.

1) Make sure the homepage is translated to other languages and translated pages are published (pencil icon) and publish state.

2) Disable WPML and make sure domains are set correctly.

They should all show the same site without a redirection.

For example, if you have the domains “example.com” and “example.de” (and WPML is deactivated) you should see the same content when you visit any of these domains.

Let us know how it goes.

Regards,
Drazen

May 2, 2023 at 7:14 am #13567329

benjaminE-20

Both url's seems to be directing me to the main URL both when wpml is activated and deactivated.
Both languages are translated. But I am still not seeing the translated content when I use the two URL's, it just loads the default language.

Regards,
Nicolai

May 2, 2023 at 12:12 pm #13570439

Mohamed Sayed

Hi Nicolai,
Thanks for contacting WPML support, I will be glad to help you.

As my colleague mentioned, it seems that the domains are not set properly. When WPML is deactivated you should be able to access the original content with all domains without any redirect.

I checked the domains with this tool hidden link and it shows 301 (Permanent) redirects from the secondary domains to the primary domain. Please check the following screenshots:

- hidden link
- hidden link

Kindly contact your hosting provider and ask them to point the domains of secondary languages to the same location as the primary domain without using a redirect. For more details please check this guide: 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

Regards,
Mohamed

May 2, 2023 at 12:52 pm #13570665

benjaminE-20

Thanks for the assistance, I got it sorted out with my provider and it seems to be working as intended now.