Skip to content Skip to sidebar

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

Problem:
You are trying to change your wp-admin login page for security reasons, but the page automatically includes a language subfolder, resulting in a URL like domain.com/en/alternatelogin. You want to disable this language subfolder for the login page.
Solution:
1. Navigate to WPML > Settings > Login and registration pages.
2. Uncheck the option "Allow translating the login and registration pages" to prevent WPML from translating the login page and adding a language subfolder.
3. If your website is using a directory for the default language and you want to remove this for all default language pages, you can disable this setting. This change will make your default language pages appear as domain.com instead of domain.com/en/.
4. Alternatively, you can set up different domains for each language. This setup can help if you are using multiple domains. For more details on setting up different domains per language, visit how to use WPML with different domains per language.

If this solution does not apply to your situation, or if it seems outdated, 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 issues persist, 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.

Tagged: 

This topic contains 9 replies, has 0 voices.

Last updated by Dražen 8 months ago.

Assisted by: Dražen.

Author Posts
December 10, 2024 at 8:51 pm #16500426

George Pardalis

Background of the issue:
I am trying to change my wp-admin login page for security reasons, but the page automatically includes a language subfolder, resulting in a URL like domain.com/en/alternatelogin.

Symptoms:
The login page URL includes a language subfolder, which I want to disable for this specific page.

Questions:
How can I turn off WPML for this specific page so that I can successfully login?

December 11, 2024 at 7:44 am #16501822

Dražen
Supporter

Languages: English (English )

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

Hello,

please go to WPML > Settings > Login and registration pages > Uncheck " Allow translating the login and registration pages"

Regards,
Drazen

December 11, 2024 at 9:03 am #16502252

George Pardalis

Hi Dražen,

Thanks for the quick reply. I did check that, in fact, and it was unchecked. So I checked it and then unchecked it again, but it made no difference.

Current status is reflected in the screenshot.

screenshot 2024-12-11 at 4.02.59 AM.jpg
December 11, 2024 at 9:08 am #16502278

Dražen
Supporter

Languages: English (English )

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

hello,

1)  In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

2) Are you using a directory for default language mode or? If yes then this is expected and can not be turned off, you are using for all default language pages.

Let me know please.

Regards,
Drazen

December 11, 2024 at 9:13 am #16502297

George Pardalis

Hi again... here is the debug informationi. And the screenshot shows how we have the languages set up.

screenshot 2024-12-11 at 4.10.34 AM.jpg
December 11, 2024 at 9:15 am #16502320

Dražen
Supporter

Languages: English (English )

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

Hello,

yes, that is expected you are using a directory for the default language. You can disable this option, and then your default language pages will not include directory. So your website will be domain.com, instead of domain.com/en/ in default language.

Regards,
Drazen

December 11, 2024 at 9:23 am #16502368

George Pardalis

Thanks for explaining that. Our setup used to go to a different domain but I believe that after we switched to a Managed WordPress hosting, we could no longer use domain aliases.... but I'll try to find out if there's a way to return to that.

If we CAN make it work with 2 domains, the problem I've asked about here should go away?

December 11, 2024 at 9:47 am #16502464

Dražen
Supporter

Languages: English (English )

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

Hello,

the problem is with you using a directory for default language, you can disable it and use only a directory for 2nd language or use a domain per language. That will also work.

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

Regards,
Drazen

December 11, 2024 at 9:48 am #16502467

George Pardalis

Thanks very much.. I will check it out and get back to you. I appreciate your help!

December 11, 2024 at 10:07 am #16502660

Dražen
Supporter

Languages: English (English )

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

Hello,

you are welcome! 🙂

Regards,
Drazen