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

Last updated by kirstenW-3 1 year ago.

Assigned support staff: Diego Pereira.

Author Posts
October 12, 2018 at 4:46 pm #2812655

kirstenW-3

I am trying to:

Redirect a vanity URL to the Brazilian language URL that includes the query string. I've tried a redirect within Yoast as well as an .htaccess redirect:

RewriteRule ^br.*$ hidden link [R=301,NC,L]

Instead, I got:
All attempts redirect to the default English homepage rather than the expected Brazilian language page.

October 15, 2018 at 12:27 pm #2817385

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @kirstenw-3, welcome to the WPML support Forum!

Has this page been translated into Portuguese? If you access the Portuguese version manually, does it work?

When the translation does not exist, WPML redirects to the original language of the page, this may be the issue.

Please let me know if it worked for you.

All the best,
Diego

October 15, 2018 at 4:27 pm #2818264

kirstenW-3

We were able to solve this using a .htaccess redirect rather than rewrite. Thanks!