Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

问题:
客户需要将内容从mtcsys.cn翻译成日文,并使用顶级域名mtcsys.com.cn。客户询问如何设置DNS,以及是否所有内容都托管在同一服务器上,并考虑到备案问题,询问是否可以将内容托管在不同的服务器上。此外,客户无法使用Elementor编辑翻译后的页面。
解决方案:
1. DNS配置:
将两个域名(mtcsys.cn和mtcsys.com.cn)指向托管WordPress的同一服务器。这通常通过更新域名注册商的DNS设置中的A记录或CNAME记录来完成。
2. WordPress和WPML设置:
在域名指向服务器后,进入WPML → 语言 → 语言URL格式,选择“每种语言使用不同的域名”,并为每种语言输入相应的域名(例如,中文使用mtcsys.cn,日文使用mtcsys.com.cn)。
确保两个域名都可以通过HTTPS访问,并且服务器配置为接受两个域名的请求。
如果对服务器设置不确定,可以联系托管提供商确认两个域名是否正确配置以加载相同的WordPress站点。
关于Elementor编辑问题,尝试以下步骤:
- 在WPML->语言中启用“自动登录和登出用户”选项
- 转到设置->固定链接,并重新保存设置
- 从站点的仪表板登出
- 再次登录,清除站点的缓存,并检查问题
如果这些步骤未能解决问题或有其他疑问,我们建议查看相关已知问题(https://wpml.org/known-issues/),验证永久修复的版本,并确认已安装最新版本的主题和插件。如果问题仍然存在,请在WPML支持论坛开启一个新的支持工单。

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 5 replies, has 1 voice.

Last updated by Carlos Rojas 2 months ago.

Assisted by: Carlos Rojas.

Author Posts
April 18, 2025 at 5:18 pm #16947891

mtcM

Background of the issue:
我准备把mtcsys.cn的内容翻译成日文,采用顶级域名的形式,这是测试网站:mtcsys.com.cn。我应该如何设置DNS?按照教程,是不是:①把mtcsys.com.cn指向mtcsys.cn,②为mtcsys.cn增加一个停靠域名mtcsys.com.cn。

Symptoms:
没有提到具体的问题或错误信息。

Questions:
1、我应该如何设置DNS?

2、mtcsys.com.cn的内容是不是统一存在mtcsys.cn的服务器呢?
我只需要管理一个服务器对吗?

April 19, 2025 at 6:56 am #16948538

mtcM

考虑到备案问题,海外的域名无法托管在中国内地服务器,所以有没有办法托管到别的服务器?也就是,mtcsys.cn的内容在中国内地服务器,而mtcsys.com.cn的内容在境外服务器?

April 21, 2025 at 9:21 am #16951344

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello,
Thank you for contacting us.

WPML fully supports using different top-level domains (TLDs) for each language. In your case, setting up hidden link for Chinese and hidden link for English is a valid and supported configuration.

To achieve this, you'll need to do the following:

1. DNS Configuration:
Point both domains (deliworld.cn and deliworld.com) to the same server where your WordPress installation is hosted. This is typically done by updating the A record or CNAME record in your domain registrar’s DNS settings so both domains resolve to your server’s IP.

You may need to contact your hosting provider for the exact DNS settings or assistance if you're not sure how to do this.

2. WordPress and WPML Setup:
Once both domains are pointing to your server:

Go to WPML → Languages → Language URL format.

Select A different domain per language.

Enter the domain for each language (e.g., hidden link for English and hidden link for Chinese).

You can follow our detailed guide here:
Use different domains per language

Make sure both domains are accessible via HTTPS (SSL certificates installed) and your server is configured to accept requests for both domains.

If you're unsure about the server setup, feel free to ask your hosting provider to confirm that both domains are correctly configured to load the same WordPress site.

Let us know once you've made these changes, or if you need help at any step—we’re happy to assist!

Best regards,
Carlos

April 22, 2025 at 9:28 am #16954002

mtcM

谢谢,我已经设置好了两个域名,并且翻译后的域名可以正常访问了。但是我没有办法在后台使用elementor编辑翻译后的页面😭,请问这是怎么回事呀?

2.png
1.png
April 22, 2025 at 9:45 am #16954129

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

Could you please try the following steps?

1- Go to WPML-> Languages, and enable the "Auto sign-in and sign-out users" option
2- Go to Settings-> Permalinks, and resave the settings
3- Log out from your site's dashboard
4- Log in again, clear the site's coach,e and check the issue

Kindly let me know if the above steps helped you fix the issue.

April 22, 2025 at 11:37 am #16955005

mtcM

这个方法很管用,现在可以编辑了,非常感谢!

April 22, 2025 at 11:44 am #16955039

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Great!

Please don't hesitate to contact us if you need our help in the future with WPML. Have an excellent day!