Skip to content Skip to sidebar

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

Last updated by Mihai Apetrei 1 year, 11 months ago.

Assisted by: Mihai Apetrei.

Author Posts
September 11, 2023 at 10:58 am #14375309

koenD

Hi,

Wordpress will be hosted on the following url: example.com/guides

So WordPress will not be installed on the root of the domain.

I was wondering if the following site structure is possible with WPML:
- example.com/guides/en/my-english-post/
- example.com/guides/de/my-german-post/
- example.com/guides/es/my-spanish-post/

Best regards,

Koen Driessen

September 11, 2023 at 3:44 pm #14377943

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Koen.

Yes, if the site is installed in this subdirectory (/guides), the format you shared will be correct.

For the rest of the languages, you will use this format:
https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/#different-languages-in-directories

For the default language, take a look here:
https://wpml.org/documentation/getting-started-guide/language-setup/directory-default-language/

That should be all that you need to do.

Mihai Apetrei

September 12, 2023 at 7:58 am #14381167

koenD

Sorry, I made a mistake. This is the setup that I actually want:
- example.com/en/guides/my-english-post/
- example.com/de/guides/de/my-german-post/
- example.com/es/guides/my-spanish-post/

I guess that complicates it a bit?

September 12, 2023 at 3:14 pm #14385033

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Yes, that wouldn't be possible if the site is installed inside the "guides" directory.

There's no way WordPress or WPML would have access to add things in the URL before the "guides" directory.

If you want to be able to use that, the site should be installed in the main/root folder the domain is connected to.

Mihai