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.

This topic contains 4 replies, has 2 voices.

Last updated by Yvette 3 years, 8 months ago.

Assisted by: Yvette.

Author Posts
July 16, 2021 at 7:47 am #9214749

infoS-2

Hello, we have set WMPL to use different languages per folder, is there any way to remove the /en/ part from the urls? (Except from homepage)

As they will be totally different from the initial language urls (that will be in greek)

For example we need:

hidden link

to become hidden link

July 16, 2021 at 8:13 am #9215169

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

As per the documentation here:
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/

you have 3 options for URL formatting. If you do not wan to show the language code in the directory, you can implement subdomains/other domains or use the language code as a URL parameter.

If the issue is that you do not want to se "en" as the subdirectory name but you want to use subdirectories...then you are looking at implementing a custom solution and I would directo you to contact a WPML Contractor to see if there is a way to hook/filter the rewrite rules to replace the language code with something else.

Alternatively, I suppose you could define a custom language with a new language code like "usa" that uses standard WordPress default locales....in this way the URL permalinks would include "usa" in the URL format instead of "en". But personally, I think it would be easier to implement subdomains.
https://wpml.org/documentation/support/editing-wpmls-languages-table/

July 16, 2021 at 9:04 am #9215667

infoS-2

Hi Yvette,

Thanks for the prompt response.

Actually, we do not need to replace the /en/ part with a custom language code but totally remove it, as there is no need to keep it and add further complexity (as the translated content for the same page has already totally different urls). We need the /en part only for the home page.

Could we use the parameter option instead and strip it somehow from the end of the url at all internal pages?

We can also consider the use of a subdomain, but is this preferable in terms of SEO?

I would like to ask which from the three supported options for URL formatting is better from your experience from a SEO perspective?

One more issue we are currently facing, we have translated some pages which are built with WP Bakery builder and have some theme-supported galleries.

Although the gallery block is present at the back end of the translated page, we can't see this in the front end part.

Can you please advice? I can also send you a site url but please note that we don't want to be public accessible.

Thanks

July 16, 2021 at 9:32 am #9216203

infoS-2

Please ignore the last part of the ticket with the gallery blocks, i figured out the solution for that. Thanks

July 16, 2021 at 3:05 pm #9218279

Yvette
Supporter

Languages: English (English ) Spanish (Español )

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

Hello

1. URL Format
I am not aware of any other clients that have modified the permalink structure. In fact, from an SEO perspective, Google recommends the presence of language codes in the permalink (see image)

I am not an SEO expert but my understanding is that the best option is using language directories in terms of clarity and search engine friendliness for google:
hidden link

2. For the pagebuilder issue, please open a new ticket for this issue as we try to focus on one topic per forum thread. Here we will handle the URL formatting questions.

GoogleRecommendedURLformats.png