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 1 voice.

Last updated by John 3 months, 1 week ago.

Assigned support staff: Raja Mohammed.

Author Posts
July 9, 2019 at 2:44 pm #4171975

John

Hello there,
So i have set up 2 lang and 2 domains (.com default and .ro parked) as parked, everything is ok on dashboard and on front, but i have this issue:
If i type domainA.com it will go to hidden link, but if i set domainB.ro it will redirect to hidden link; so if i want to access the 2nd website (parked one) directly i need to type full address which will be hidden link.
Similar issue i found here but without solution
https://wpml.org/forums/topic/auto-redirect-problem-with-different-parked-domains-per-language/

Also like the user above the website is hosted on siteground, they told me this:
"I checked and noticed that in the dashboard under the WPML - Languages section, there is a Language URL format. By default the entry in there is hidden link and we cannot change it."

Hope you can give me a fix. All the best!

July 9, 2019 at 5:18 pm #4173385

John

My issue is resolved now. Thank you!
Just add this to htaccess
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ hidden link{REQUEST_URI} [L,NE,R=301]