CyberHosting

Adding subdomain for added site under wordpress Subdomain based Multisite Network

I have created a multisite WP Network esoftora.com
esoftora.com -- /home/domain.com/public_html

Created a subdomain in cyber panel
staging.esoftora.com -- /home/staging.domain.com/public_html

The problem is now the staging .esoftora.com is in a separate directory to work this as part of my network site the site should have the same directory as my primary website. /home/doman.com/public_html


How do I resolve this?

Comments

  • Multisite can be fussy especially with self hosted server that is not straight apache/nginx. have a read and you might find that using ssh you can rename and validate folders/directories > https://duckduckgo.com/?q=in+a+separate+directory+after+backup+wordpress+multisite&atb=v206-1&ia=web
  • My network is working just fine - I'm able to add different subdomain based sites too.

    The problem is with the SSL - the ssl is not working on the subdomain.ory to the same as that of the primary domain.

    To resolve this I'm adding a subdomain through a site panel also I'm pointing the subdomain directory

    still there is new directory created in the public_html > subdomain
  • /home/esoftora.com/public_html/staging.esoftora.com

    when i want is simply /home/esoftora.com/public_html/
  • I bookmarked this often updated plugin a few weeks back thinking it might come in handy for something like you are having. I never got round to checking it out but if it is multisite friendly it or something like it might help you track down the problem > https://wordpress.org/plugins/wp-letsencrypt-ssl/
  • One last thing. I setup multisite a few years back on AWS and at that stage had to use load-balancing to generate an Amazon Wildcard SSL cert (*).
    that worked and all child sites/sub-domains were https automatically.
    Prior to doing that I could only SSL the main domain.
  • ohh - I was using google cloud let me check load balancing there
  • I have tried ssl plugins - but there is issue with a subdomain creation. It says there is no valid subdomain created for this site.

    in cyber panel is we create the subdomain its is created as a separate directory and work as independent website - this does not allow the site added in the WP network to operate
  • As a multisite, wordpress is better as a single instance and then you add, delete, create, etc your sites/sub-domains, etc. Also a wildcard ssl certificate over the instance domain should let you publish https sites with no amendments. I would say to use CyberPanel you could create your master Wordpress site for multisite administration but other created WP sites would conflict/confuse as per your comment. It would work but a simple solution = 1 server, 1 WP instance, 1 WP multisite. The following link for a multisite stack works. I have setup on AWS with load balancer and wildcard Amazon SSL certs.
    > https://bitnami.com/stack/wordpress-multisite
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!