Skip Navigation

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

Problem:
The client is trying to change the URL slug for different language versions of their site using WPML, but is unable to do so because WPML recognizes the folder "magazine" as the root URL, which cannot be translated directly within WPML.
Solution:
We recommend manipulating the URL slug through the server's .htaccess file to achieve the desired translations. This approach requires custom coding and might need consultation with a developer. Alternatively, using subdomains for each language version (e.g., magazin.kunstloft.de, rivista.kunstloft.it) could be a viable solution, as these would be set on the server side and can be assigned to the respective languages, thus bypassing the issue with the root URL.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. Should you need further assistance, we highly recommend opening a new support ticket or visiting the WPML support forum.

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

Last updated by Marsel Nikolli 2 weeks, 6 days ago.

Assisted by: Marsel Nikolli.

Author Posts
May 29, 2024 at 2:11 pm #15684275

christianB-195

Background of the issue:
I am trying to change the URL slug for different language versions of my site using WPML. I have already set up String Translations and other translation setups.

Symptoms:
Despite the setup, I am unable to change the URL slug as needed for different language versions of the site.

Questions:
Where can I change the URL slug to match the language-specific versions like changing hidden link to hidden link
How can I modify the URL slug from hidden link to hidden link

May 29, 2024 at 2:14 pm #15684457

christianB-195

Hello! Can you help me with this? It is still not change?

Screenshot 2024-05-29 210514.jpg
May 29, 2024 at 2:47 pm #15684570

Marsel Nikolli
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support, I will gladly help you.

From the image you shared, I understand that your WordPress installation is in the folder "magazin" of your root folder, is that correct? (hidden link and hidden link seems to be 2 different websites)

In such cases, WPML doesn't offer an option to translate the URL slug as the folder "magazin" is recognized as a root URL (if you see the URL on the option "Different languages in directories", you'll see that the main website URL is "hidden link").

You could try if it might be possible to manipulate/translate the URL via the .htaccess file but I am not sure that it would work and that would require some custom coding which doesn't fall under the purpose of this support forum. In case you feel that you need help with this, I recommend that you hire a developer or a WPML contractor: https://wpml.org/contractors

I hope you find this information helpful.

Kind regards,
Marsel

May 31, 2024 at 6:06 am #15690603

christianB-195

Hello,

Yes you are correct, it is two different domains. So, the scenario is we have several domains already that is multilingual and all are individually made e.i.

kunstloft.de/magazin
kunstloft.at/magazin
kunstloft.ch/magazin
kunstloft.com/magazine
kunstloft.co.uk/magazine
kunstloft.fr/magazine
fr.kunstloft.be/magazine
fr.kunstloft.ch/magazine
kunstloft.it/rivista
kunstloft.es/revista
kunst-loft.nl/magazine
kunstloft.be/magazine

Our problem is how can we link this domains to kunstloft.de/magazin? Is this possible? Or can you suggest anything we can do make it work with WPML?

May 31, 2024 at 8:23 am #15691047

Marsel Nikolli
Supporter

Languages: English (English )

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

Hi,

As mentioned in my previous reply, WPML recognizes the folder "magazine" on your server as the root folder/URL, and that can't be translated on the WPML side.

The only possible solution might be to manipulate the "/magazine" slug through the .htaccess file, which is related to the server-side configuration. For this, you would need to consult with a developer and check if that works and if it's the best solution.

To make this possible via WPML you can use subdomains like this for example:
- magazin.kunstloft.de
- rivista.kunstloft.it
-...

As the subdomains would be set on the server side before being assigned to the language, they would be already translated as needed in this case.

Let me know if you have further questions.

Kind regards,
Marsel

June 4, 2024 at 1:16 pm #15702218

christianB-195

Thank you so much Marsel for your help. We were able to come up a way to resolve the URL structure.

christianB-195 confirmed that the issue was resolved on 2024-06-04 13:16:47.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.