Skip Navigation

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

Problem: 404 error for translations

Solution: The client has choosen *Different languages in directories* option for WPML>>Languages>>Language URL format. But the following features are not enabled in their new hosting. Changing those settings helped to resolve the issue.

a) URL rewriting is not enabled in your web server

b) The web server cannot write to the .htaccess file

Relevant Documentation: https://wpml.org/forums/topic/404-error-for-translations-2/#post-13340781

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

Last updated by antoniP 1 year, 8 months ago.

Assisted by: Bigul.

Author Posts
March 27, 2023 at 7:58 am

antoniP

I tried to configure my page to make a version in 4 languages, but I must have done something wrong

March 27, 2023 at 9:16 am
March 27, 2023 at 1:38 pm #13339331

antoniP

Dear Bigur,
any conclusion?
the page still doesn't work and I'm worried about the delay this will cause... thank you very much in advance

March 27, 2023 at 4:01 pm #13340781

Bigul
Supporter

Languages: English (English )

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

Hello,

I had a few rounds of testing in my local copy. The translated pages are working fine in the test installation without any modifications. This looks like the issue is happening because of a compatibility conflict with your Hosting Server settings(because of the following reasons). Please check the attached images for more details.

a) URL rewriting is not enabled in your web server

b) The web server cannot write to the .htaccess file

So please contact your hosting server support team to enable it.

As a workaround for the time being, please try the following steps after a full site backup{mandatory} and make sure you are getting the expected results or not.

1) Visit WPML>>Languages>>Site Languages
2) Choose *Language name added as a parameter* option
3) Save the changes
4) Visit Settings>>Permalinks
5) Resave the settings

--
Thanks!

Bigul

2023-03-27_21-13-26.png
2023-03-27_21-11-18.png
2023-03-27_21-06-53.png
March 27, 2023 at 7:09 pm #13342359

antoniP

My issue is resolved now. Thank you!
If I have any other problem I hope to find someone as good as you!