将cpanel附加域映射到Wordpress多站点中的子站点 [英] Map cpanel Add On domains to subsites in Wordpress multisite

查看:72
本文介绍了将cpanel附加域映射到Wordpress多站点中的子站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台服务器,其中在cPanel上设置了多个域作为"Add On"域.这些域是完全托管的,因为我有电子邮件设置和每个文件夹都有一个Wordpress安装文件夹.所有域的域名服务器都相同(因为它们在同一服务器上运行).

由于每个域的Wordpress站点都很基础,因此我尝试将它们设置在多站点安装中(带有子文件夹).

但是我找不到如何将每个域映射到各自的子站点文件夹.我经验丰富,可以将域从另一台服务器映射到多站点安装中,也可以在具有驻留域的同一台服务器中进行映射,但是在这种情况下有所不同,因为这些域解析为它们自己的文件夹而不是Wordpress子站点.有没有人遇到过类似的情况,可以帮助我吗?

非常感谢,

解决方案

首先让我们清楚一点,如果您想在WP多站点网络中使用自定义域,则不需要为每个站点单独安装wordpress文件夹/./p>

您所有的插件域都应指向您的主WP multsite文件夹.例如,如果exam​​ple.com是您的WP Multisite网络的主域,并且它指向"public_html"文件夹,则您的附加域说domain2.com也应该指向同一文件夹,即"public_html"

I have a server where I have several domains set up as "Add On" domains on cPanel. Those domains are fully hosted, as I have emails set ups and a folder with a Wordpress installation for each one. All domains nameservers are the same, (as they runs on the same sever).

As the Wordpress sites of each domains are quite basic I am trying to set them in a multisite installation (with subfolders).

But I can't find how to map each domain to respective subsite folder. I am experienced to map domains to multisites installations from another servers and in the same server with parked domains, but in this case is different as the domains resolves to their own folder instead of the Wordpress subsite. Has anybody faced a similar scenario and can help me with this?

Many thanks,

解决方案

First let's be clear that if you want to use custom domains in your WP multisite network then you don't need separate wordpress folder/installations for each site.

All your addon domains should point to your main WP multsite folder. For example if example.com is your main domain of WP Multisite network and it points to "public_html" folder then your addon domains say domain2.com should also point to the same folder which is "public_html"

这篇关于将cpanel附加域映射到Wordpress多站点中的子站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆