Map cpanel Add On domains to subsites in Wordpress multisite

妖精的绣舞 提交于 2021-01-28 05:34:31

问题


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,


回答1:


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"



来源:https://stackoverflow.com/questions/55211908/map-cpanel-add-on-domains-to-subsites-in-wordpress-multisite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!