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 1 reply, has 2 voices.

Last updated by Bruno Kos 3 months, 2 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
July 2, 2019 at 7:41 am #4124729

MOOI

Hi There,

I would like to redirect /id-id language code to hidden link
Currently the bigger traffice is reached through /id-id but we don't have this language code.

Can I create this code? And redirect traffic from this (id.-id) to id language code?

Thanks a lot,

July 2, 2019 at 7:49 am #4124769

Bruno Kos
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support!

You could create your own custom language, setting up custom language code in the process:
https://wpml.org/documentation/support/editing-wpmls-languages-table/

And then perhaps duplicate all the pages from id-id to this new language. It would be something in those lines:
https://wpml.org/forums/topic/change-the-language-code-2/#post-1309025

While this is why you cannot change this directly:
https://wpml.org/forums/topic/how-to-change-language-code/#post-1202820

You could also consider hiring some of our Contractors to do the job for you:
https://wpml.org/contractors/

Because I would assume that something like this will require htaccess redirect rules and thorough testing.

Regards,
Bruno Kos