Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is inquiring about the impact of changing their domain structure so that casas4u.es becomes the main domain for the Spanish version of the website, and casas4u.nl redirects to casas4u.es/nl for the Dutch version, instead of the current setup where casas4u.es refers to casas4.nl.
Solution:
We recommend reviewing our guide on using a domain per language. This will help you understand how to configure your website's domains for different languages correctly. You can find the guide here: Using WPML with Different Domains Per Language.

If this solution doesn't look relevant, please open a new support ticket in our WPML support forum.

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 10 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
December 6, 2023 at 4:57 pm #15010729

philipv-13

Another question. Is it ok I post it here. Because otherwise I get another collegue?

Currently, casas4u.es refers to Casas4.nl
This does not make sense because if you type casas4u.nl you go to the Spanish version of the website. and then you have to adjust the language with the flag.
Logically, casas4u.nl refers directly to the Dutch version of the website.

SO the main domain of the website should be Casas4u.es.
And the other domain casas4u.nl to casas4u.es/nl

If I would change this, what kind of effect would or could this have on the whole website?
Will some things maybe break?

Thanks.

December 7, 2023 at 7:16 am #15013431

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check our guide about using domain per language. (https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/)

Best regards,
Osama

December 7, 2023 at 7:42 am #15013643

philipv-13

Thanks I read it, I couldn't find the answer in my question.
I still have the question what the consequences are if I chanche the main domain: casas4u.nl into casas4.es after almost everything now is configured.
Are there any consequences?
Or will everything automatically be ok?
Thanks.

December 7, 2023 at 7:50 am #15013661

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

It should be fine if you change the primary domain, but you will still have the same casas4.es for Spanish and casas4.es/nl for Dutch.

If you aim to achieve that, then I don't think this will affect WPML because it's server/DNS change.

However, you need to be careful with this change because all your WordPress database records and URLs will be changed, and some won't change automatically.

For more info about the risks of this change, please contact your host support or an expert in DNS and domains.

Best regards,
Osama

December 7, 2023 at 7:55 am #15013675

philipv-13

But casas4u.es for Spanisch and casas4u.es/nl for Dutch and a redirect with casas4u.nl to casas4u.es/nl seems much more logical than it is now.
But I don't want to have a lot of extra work later if things go wrong.

December 7, 2023 at 7:57 am #15013681

philipv-13

Also I thougt that if you would have an directory in the end like casas4u.es/nl it would direct directly to that if you are in that country. Because the browser now in which country you are. But Im not seeing that happen yet. Is that also an extra setting?

December 7, 2023 at 8:03 am #15013695

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

1) It seems logical, but it will need some work to fix the issue if something goes wrong during the process.

2) Yes, redirecting based on browser language is an option in WPML-> Languages, but the redirect is based on the browser language, not the location. Kindly check this guide. (https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/)

Best regards,
Osama

2023-12-07_09-59-42.jpg
December 7, 2023 at 9:05 am #15014533

philipv-13

Ok, thanks.
Im trying to get an idea of what the impact is of the change.
You say WordPress database records and URLs will be changed, and some won't change automatically.
What would be needed to fix in that case?

For example this is it now for Spanish
hidden link
And this for Dutch:
hidden link

In the new situation it will be
hidden link
And this for Dutch:
hidden link

And for properties:
For Spanish:
hidden link

For Dutch:
hidden link

In the new situation it will be :

For Spanish:
hidden link

For Dutch:
hidden link

What exactely in this case could go wrong, what has to be repeared?

December 7, 2023 at 9:12 am #15014611

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

If the process doesn't go correctly, you will have, for example, (hidden link) for Spanish instead of updating the URL to (hidden link).

However, this is unrelated to the translation process or WPML because it relates to the site's domain change and database.
WPML will use the site's URL in the database (wp_options table).

Best regards,
Osama

December 8, 2023 at 4:41 pm #15027339

philipv-13

OK, thanks.
There is one page I can't translate yet:
hidden link
I can't seem to translate this page, not really sure why. In every language I see Spanish.
Is that maybe such an database error?
See printscreen.

Acerca-de-nosotros.png
December 9, 2023 at 11:55 am #15029083

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I see that you have a ticket for this issue here. (https://wpml.org/forums/topic/about-us-page-doesnt-want-to-get-translated/)

Please let us check this issue in the new ticket.

Thanks for your understanding

Best regards,
Osama