Home › Support › English Support › [Resolved] Redirect vanity URL to language
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: Language Redirection
This topic contains 2 replies, has 2 voices.
Last updated by kirstenW-3 1 year, 7 months ago.
Assigned support staff: Diego Pereira.
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.
English (English )
Spanish (Español )
Portuguese (Brazil) (Português )
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,
We were able to solve this using a .htaccess redirect rather than rewrite. Thanks!