Skip Navigation

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

Problem:
The client is trying to translate the wp-login page into French, but encounters a 404 error when switching languages after following the WPML documentation for translating WordPress login and registration pages.

Solution:
1. Navigate to WPML > Settings and scroll down to the Login and registration pages section.
2. Uncheck both options within this setting and save the changes.
3. Open the .htaccess file and replace the existing rule with the default rule provided at WordPress.org documentation.
4. Clear the caches from the site and browser.
5. Go to Settings > Permalinks and save the permalink structure.
6. Re-enable the options within the Login and registration pages in WPML > Settings.
7. Resave the permalink structure and check if the login page is working in other languages.

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

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 Prosenjit Barman 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
December 8, 2023 at 11:47 am #15025407

davidP-136

Tell us what you are trying to do?
Ans: We want to translate the wp-login page in FR

Is there any documentation that you are following?
Ans: Yes we follow this doc, https://wpml.org/documentation/getting-started-guide/translating-wordpress-login-and-registration-pages/?utm_source=plugin&utm_medium=gui&utm_campaign=wpmlcore

Is there a similar example that we can see?
Ans: No

What is the link to your site?
hidden link

We translate the wp-login.php using the default WPML to enable translation for Login and registration pages, so when I change language from English to French it redirects to 404 pages. We are using Apache and I have also verified in .htaccess that it writes a below redirection. hidden link but it still goes to 404. So please help us to resolve this issue.

image_2023_12_08T11_43_26_240Z.png
December 11, 2023 at 6:16 am #15033205

davidP-136

Can anyone look into this ticket? We need urgent help on this.

December 11, 2023 at 7:11 am #15033255

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

I understand the issue you're having. During my inspection, I initially encountered a 404 error while trying to Switch to French. But, after that, 302 redirections kept happening when I switched to the French language from the wp-login.php page, which led to the "ERR_TOO_MANY_REDIRECTS" error.

However, I suspect that the problem is happening due to the broken permalink of the Login page. Would you please try the following and check if that helps to solve the issue?

- Please go to "WPML > Settings" and Scroll down to the "Login and registration pages" section.
- Uncheck both of the options within this setting and save the changes.
- Now, open the htaccess file and replace the existing rule with the default rule included here: https://wordpress.org/documentation/article/htaccess/#basic-wp
- Once done, clear the caches from the site and browser.
- Now, go to "Settings > Permalinks" and save the permalink structure.
- Enable the options within the "Login and registration pages" in "WPML > Settings"
- Resave the permalink structure again and check if the login page is working or not in other languages.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

December 12, 2023 at 5:41 am #15042027

davidP-136

Yes, it's resolved, I think it conflicts with the index.php htaccess rules.
Thanks for the help.