Skip Navigation

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

Problem:
The client is developing a site and considering using WPML. They want to know if WPML supports using a CDN when configuring different domains for each language.
Solution:
We confirm that WPML supports using a CDN with different domains for each language. Here is a step-by-step guide to setting this up:
1. Configure WPML for Different Domains:
- Navigate to WPML → Languages.
- Select "A different domain per language" and specify your domains (e.g., example.com for English, example.fr for French).
- Ensure each domain is correctly pointed to your WordPress site through DNS settings.
- For further details, refer to our complete guide on different domains: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/
2. Set Up Your CDN:
- Add each language domain as a separate "pull zone" in your CDN.
- Configure caching rules to ensure language-specific assets (such as images and scripts) are not mixed between domains.
3. Manage SSL and Cache:
- If using HTTPS, ensure each domain has a valid SSL certificate.
- Clear your WordPress and CDN caches to ensure all settings take effect.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at https://wpml.org/forums/forum/english-support/.

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 6 replies, has 0 voices.

Last updated by Andrey 2 weeks, 5 days ago.

Assisted by: Andrey.

Author Posts
November 6, 2024 at 4:56 pm #16374108

haraldK-9

Background of the issue:
I am developing a site and considering using WPML. I want to know if WPML supports CDN when using different domains for each language.

Symptoms:
No specific issue or error message mentioned.

Questions:
Does WPML support using a CDN when different domains per language?
Is there anything I should know before adding this feature?
Which plugin do you recommend for this purpose?

November 6, 2024 at 8:39 pm #16374647

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Yes, WPML supports using a CDN when configuring different domains for each language. However, it's essential to set everything up correctly to avoid issues with the delivery of language-specific content.

Here’s a simplified guide:

Key Steps for Using a CDN with WPML (Different Domains)

1. Configure WPML for Different Domains:
- Navigate to WPML → Languages.
- Select “A different domain per language” and specify your domains (e.g., example.com for English, example.fr for French).
- Ensure each domain is correctly pointed to your WordPress site through DNS settings.
- For further details, refer to WPML's complete guide on different domains: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

2. Set Up Your CDN:
- Add each language domain as a separate "pull zone" in your CDN.
- Configure caching rules to ensure language-specific assets (such as images and scripts) are not mixed between domains.

3. Manage SSL and Cache:
- If using HTTPS, ensure each domain has a valid SSL certificate.
- Clear your WordPress and CDN caches to ensure all settings take effect.

I hope you find this helpful.

November 9, 2024 at 7:37 am #16383931

haraldK-9

Hi,
I talked now to NY CDN provider (bunny CDN).
They said that WordPress only allow one pull zone?

I don't get it...
How can I setup WordPress to use different pull zones for different wpml language domain?

Any advice?
Thanks again

November 9, 2024 at 9:58 am #16384195

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

As mentioned in the article above, I recommend setting up a separate domain for each language option first, checking if the domains work, and then consulting with your hosting company to see how they can configure a CDN for your website.

November 10, 2024 at 10:30 am #16385331

haraldK-9

Hi,
the Setup with Domain per Language does allready work.

Each Domain is added as Alias Domain.
Now the i just need the CDN Setup.

Is there a Documentation for that anywhere?
Would be great if WPML does help at this point, because it is plugin related.

Thanks for your help.
Harald

November 10, 2024 at 10:33 am #16385347

haraldK-9

Seems a customer allready asked that:
https://wpml.org/forums/topic/i-want-to-set-up-cdn-with-multi-site-set-up/

but there is also no solution shown..

thanks again

November 11, 2024 at 9:26 pm #16390254

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback, Harald.

Currently, we do not have an article on setting up a CDN, as the setup process can vary depending on the specific CDN provider. Additionally, there are no particular settings related to CDNs in WPML.

I recommend sharing our article with your CDN provider to learn how to configure different domains on your server.

The user from the other support ticket was supposed to test something but never returned.