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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
March 14, 2023 at 8:43 am #13239909

newsF

Hi there,

hidden link

Can we somehow show the default language in the URL when the site is loaded for the first time? like

hidden link

When you change from switcher then it works fine and language parameter is added to url. But when the site is loaded for the first time, we still need the language parameter in URL.

March 14, 2023 at 9:24 am #13240427

Long Nguyen
Supporter

Languages: English (English )

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

Hi there,

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

As I understand, you want to use the language director for the default language on your site, for example:
hidden link

If yes, please go to WPML > Languages > Language URL format > Different languages in directories > Enable option "Use directory for default language". You also need to set up a root page then.
Please read more on the documentation https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-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

The topic ‘[Closed] Redirection issue’ is closed to new replies.