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."
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]