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

Last updated by susanM-4 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
July 27, 2023 at 7:40 pm #14113693

susanM-4

Tell us what you are trying to do?
I'd like to display the French translated site as a different domain:
hidden link
The SSL certificate is good. The site loads at this domain
The IP points to the same A record as the English site hidden link.

Now, I did setup the original site at a temporary domain first hidden link
and used the different method first with Fr displaying as a directory hidden link
Then did a sitewide search and replace domain swap. The site files did not move from the server.

Is there any documentation that you are following?
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/

https://wpml.org/forums/topic/different-domains-per-language-not-valid-error/

Is there a similar example that we can see?

What is the link to your site?
hidden link

July 31, 2023 at 3:09 am #14123493

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Susan,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Now I see both domains hidden link and hidden link are directed to the main domain hidden link.

If you want to use the domain hidden link as the second for the French language, please remove the redirection. When you access the domain hidden link, it should display the same content as the main domain.
Then you can go to WPML > Languages > Language URL Format > Add the second domain > Save changes. You can untick the option "Validate on save" because sometimes validation does not work correctly.

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

While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

Look forward to your reply.
Thanks

August 3, 2023 at 7:49 pm #14151635

susanM-4

I did a test to make sure the domain was actually pointing and not simply domain redirecting.
Then I just unticked the "Validate on save" and added the domain and it worked.
I also increased the memory limit, and the site is working much better overall.
Thank you!