将cpanel附加域映射到Wordpress多站点中的子站点

编程入门 行业动态 更新时间:2024-10-23 22:34:15
本文介绍了将cpanel附加域映射到Wordpress多站点中的子站点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

非常感谢,

解决方案

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

您所有的插件域都应指向您的主WP multsite文件夹.例如,如果exam​​ple是您的WP Multisite网络的主域,并且它指向"public_html"文件夹,则您的附加域说domain2也应该指向同一文件夹,即"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 is your main domain of WP Multisite network and it points to "public_html" folder then your addon domains say domain2 should also point to the same folder which is "public_html"

更多推荐

将cpanel附加域映射到Wordpress多站点中的子站点

本文发布于:2023-07-16 04:14:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117731.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:站点   cpanel   Wordpress

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!