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: 

This topic contains 9 replies, has 3 voices.

Last updated by Vincenzo 4 months, 2 weeks ago.

Assigned support staff: Vincenzo.

Author Posts
January 11, 2018 at 2:19 pm #1481659

Julia

Hi already started a thread but its closed.
https://wpml.org/forums/topic/multilingual-webshop-with-multiple-domains-how-to-setup-email-for-2nd-language/

Still need help configuring

Tell us what you are trying to do?
Using a website with multiple domains. But need to know how to setup the dns and hosting for email.

Is there any documentation that you are following?
https://wpml.org/2016/04/use-wpml-different-domains-per-language/

This instruction is handy but we cannot acces the apache server since we have shared hosting.
Als it is not clear what the exact settings voor dns should be for setting up email.

Please advise

January 13, 2018 at 12:09 pm #1483733

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello, thank you for contacting WPML Support!
I will take care of your ticket.

If I understand correctly, you need to set up your domains to be able to create email addresses on both.
Is that correct?

This is not related to WPML but I will try to help as much as I can.

I have a similar setup on one of my servers. It is a VPS with CPanel.
If your hosting has CPanel or something similar, you can try my setup.

1. First of all, I register my domains.
- It is not mandatory to register the domains with the hosting provider.

What is important is how you register the domains.
- Redirect -> Not OK
- Redirect + E-Mail -> Not OK
- DNS Management -> OK
- DNS Management + E-Mail -> OK (easier setup)

2. Then I configure the domains. Please follow the instructions on the "CPanel setup" section on the following documentation:
- https://wpml.org/2016/04/use-wpml-different-domains-per-language/

3. Then I configure the emails.
* If the domain has been registered as DNS + E-Mail, you can point the DNS to the IP address of the server where WordPress is installed and configure your emails with the domain provider (usually, they provide an easy interface for this).
* If the domain has been registered as DNS Management only, you need to point all the DNS (included the MX) to the IP address of the server where WordPress is installed and configure that server to receive the email for this additional domain. You may need help from the hosting support and there is a chance that this is not possible on a shared server.

Please let me know if this solves the issue.
If you need more help, I need the details of the domains registration and the hosting provider plan (panel, domain limits, etc.) that you have.

Thank you

Related documentation:
http://support.hostgator.com/articles/hosting-guide/lets-get-started/dns-name-servers/how-to-change-dns-zones-mx-cname-and-a-records
http://support.hostgator.com/articles/how-do-i-change-my-sites-mx-record-to-point-mail-to-another-server-or-domain

January 15, 2018 at 3:15 pm #1484822

Julia

Hi Vincenzo,

Thanks for your extensive reply, this really helps!
We cannot find any information about a proper setup for this. Strange because i can imagine we are not the only one having a wpml woocommerce setup with multiple domains.

One thing, we have shared hosting on a apache server. In the direct admin we can do the dns settings but the apache instruction here (https://wpml.org/2016/04/use-wpml-different-domains-per-language/) is not something we can set in the hosting since we are on shared hosting.

How do we handle this?

January 15, 2018 at 4:52 pm #1484950

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello,

1. Is it possible for you to add more domains to the shared hosting?
- If yes, can you please give me more details or post some screenshot of the available options? Maybe I can help with that.

Generally speaking, you should add the secondary languages domains so that they point to the same folder of the main domain. You may ask the hosting support if this is possible and how to achieve that.

2. What brand/kind of panel do you have to manage your hosting service?

Thank you

January 16, 2018 at 1:35 pm #1486100

Julia

1. Is it possible for you to add more domains to the shared hosting?
- If yes, can you please give me more details or post some screenshot of the available options?

We can add more domains to our hosting. But the secondary language domain resides at a different hosting company. Since our main hosting company does not support that domain extension. Sowe use dns to point that domain to our main hosting.

Generally speaking, you should add the secondary languages domains so that they point to the same folder of the main domain. You may ask the hosting support if this is possible and how to achieve that.

Isn't that possible by dns with an A and cname record?

2. What brand/kind of panel do you have to manage your hosting service?
We use direct admin.

Is that enough information for you?

January 16, 2018 at 5:07 pm #1486423

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello,

thank you for the updated info.

It is perfectly fine to register a domain, needed for the "A different domain per language" option, using a different registrar and then point it, using the DNS, to the main server with the WordPress + WPML install.

What is important for WPML is the web server configuration.
I checked the DirectAdmin documentation and it seems like the correct way to add a server alias for the secondary domains can be this:
- https://www.ipserverone.info/control-panel/add-domain-pointers-directadmin/

Please ask for more info about this to your hosting provider support service. You can also show them the following documentation:
https://wpml.org/2016/04/use-wpml-different-domains-per-language/

About the mail configuration of the secondary domain, you can setup it on the server where you registered it, or you can use the MX record to point it to the main hosting.

January 22, 2018 at 11:33 am #1491830

Julia

Hi Vincenzo,

The problem is that we have shared hosting so cannot set the apache settings in the section 'setting up your http server'
https://wpml.org/2016/04/use-wpml-different-domains-per-language/

So i think we have no other option to setup the secondary language as a separate website...

January 22, 2018 at 1:18 pm #1492012

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello,

the "A different domain per language" option can be used on shared hosting. The limit here seems to be the correct configuration of the added domain.

1. Did you try adding it as explained here?
- https://www.ipserverone.info/control-panel/add-domain-pointers-directadmin/

2. Did you ask the hosting support if this is possible and how to achieve that?
- The desired result before enabling the "A different domain per language" option should be this:
- hidden link -> should show the WordPress site in the default language
- hidden link -> should show the same site and language but the site's address shown in the browser's address bar should stay in the IT domain and not change to the NL domain (eg. because of a redirection).

Once this is achieved, you can enable the "A different domain per language" option and everything should work.

3. If the support says that this is not possible with their panel, you may consider switching to a different shared hosting plan that allows this and possibly with a Cpanel

Please let me know if you need further details.

Thank you

May 30, 2019 at 6:22 pm #3925611

robP-2

Hi, i AM alsof trying this to get to work on DirectAdmin.
Could you please provide the link to the article marker as "bidden link"

I checked the DirectAdmin documentation and it seems like the correct way to add a server alias for the secondary domains can be this:
- hidden link

Thx

May 31, 2019 at 8:05 am #3928385

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello @robp-2

I edited the links and now they should be visible.

If you need any further help, please open a new ticket.

You can do it from here: https://wpml.org/forums/forum/english-support/

Kind regards,
Vincenzo