Skip Navigation

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

Last updated by chia-yingC 4 years, 5 months ago.

Assisted by: Bobby.

Author Posts
October 7, 2020 at 3:32 pm #7183073

chia-yingC

Hello WPML Support Hero,

I was trying to follow through WPML tutorial to set up language subdomains. However, Siteground doesn't offer cPanel in their hosting service. They use something called "site tools". When I create a subdomain, a new public_html folder under that subdomain will be automatically created. I was unable to point language subdomains such as de.pioneersnonpareil.com to my main public_html folder because Siteground doesn't offer any domain tools for that.

Siteground support wrote back with a solution using symbolic links as such but they would like me to double check with you guys:

ln -s /home/foldername/www/de.pioneersnonpareil.com/public_html /home/foldername/www/pioneersnonpareil.com/public_html

Would this setup work for WPML subdomain option?

Thank you very much!

Best wishes,
Christine Wang

October 8, 2020 at 7:20 pm #7192951

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

I am not familiar with using symbolic links

However, please review the following solution another client of Siteground described that worked for them

https://wpml.org/forums/topic/siteground-host-issues-with-wpml/

Sitegeround also has a tutorial on how to add an addon domain and another on how to use a parked domain for the same folder linked from that page.

hidden link

NOTE another user in the past tried using symbolic links with no success
https://wpml.org/forums/topic/using-a-separate-domain-in-my-environment/page/2/#post-1288971

October 14, 2020 at 3:19 pm #7228893

chia-yingC

My issue is resolved.

The solution I used on Siteground is as such:

1. Create subdomains using SiteTools (when one does that, the url folders are created under /www/); issue new SSL certificates for them if necessary

2. Go to each language url folder (fr.yoursite.com) under /www/ which was created by Siteground's SiteTools when subdomain was generated, and delete the public_html folder.

3. run this command via command line for each and every language to be added:

ln -s /home/this_path_depends_on_server/www/yoursite.com/public_html /home/this_path_depends_on_server/www/fr.yoursite.com

Change the second argument for every language you have. (Be careful about having no slash "/" at the end of each argument)

4. Go to WPML language setting and input the subdomain URLs and save.

All set. Good luck!