语言是通过Polylang从不同域设置的

问题描述 投票:0回答:1

我有一个 WordPress 网站,带有

Polylang
多语言插件。我想为不同的域设置不同的语言。这就是为什么我选择
The language is set from different domains
选项。
https://www.imagevenue.com/ME17ZY27

例如
我有一个类似 https://ne.main_domain.nl/ (荷兰版)的网站。我想使用语言切换器切换到 https://en.main_domain.nl/ 。我在 https://ne.main_domain.nl/ 中设置了 WordPress。但我没有在 https://en.main_domain.nl/ 中设置 WordPress,这是英文版的。只有我把index.php(WordPress文件)文件放在那里。当我尝试切换语言时,会显示如下消息:

This page isn’t working

en.main_domain.nl is currently unable to handle this request.

HTTP ERROR 500

我读了这篇文章https://polylang.pro/doc/url-modifications/#subdomains-name-and-domains。但我不明白我的程序出了什么问题。我还需要在 https://en.main_domain.nl/ 中设置 WordPress 吗?我为此搜索了文章和视频教程。但没有成功。有什么想法吗?

谢谢。

wordpress dns polylang
1个回答
0
投票

我终于找到了解决办法。您无需为其他域 (https://en.main_domain.nl/) 安装 WordPress。只需将 https://en.main_domain.nl/ 的 https://ne.main_domain.nl/ 放入

Document root
字段(按照托管设置 -> 托管类型)。这些设置适用于 Plesk 服务器。

© www.soinside.com 2019 - 2024. All rights reserved.