Wordpress Multisite Is Broken #457

Closed
opened 2026-04-05 20:27:59 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @balkisanton on 11/18/2022

CloudPanel version(s) affected

v2

Description

Some issues when managing multisite on wordpress site. Some code/menu/function is not working

How to reproduce

I'm trying to add multisite (subdirectories) on my Wordpress blog, but have some problem with it.

First, i'm not able login to second site dashboard, I must add the rewriterule manually on vhost like this :

Rewrite requests to /wp-.* on subdirectory installs.

    if (!-e $request_filename) {
            rewrite /wp-admin$ $scheme://$host$uri/ permanent;
            rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last;
            rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last;
    }

But after the dashboard is able to access, the appearance of the blog and dashboard looks broken & messy. Even some buttons can not be accessed, see the screenshots below :
11
2222

I thought it was because a bugs on database or something (I don't know exactly, I'm just a beginner). But the truth is this problem doesn't appear when i'm not using Cloudpanel.

Can someone help fix this issues? So we can add multisite on the same domain without a problem, thanks. Cloudpanel is really great panel, just need little fix

Possible Solution

No response

Additional Context

I'm using Google Cloud server, with Cloudflare CDN and running 2 websites on that server using Cloudpanel to manage it

*Originally created by @balkisanton on 11/18/2022* ### CloudPanel version(s) affected v2 ### Description Some issues when managing multisite on wordpress site. Some code/menu/function is not working ### How to reproduce I'm trying to add multisite (subdirectories) on my Wordpress blog, but have some problem with it. First, i'm not able login to second site dashboard, I must add the rewriterule manually on vhost like this : # Rewrite requests to /wp-.* on subdirectory installs. if (!-e $request_filename) { rewrite /wp-admin$ $scheme://$host$uri/ permanent; rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last; rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last; } But after the dashboard is able to access, the appearance of the blog and dashboard looks broken & messy. Even some buttons can not be accessed, see the screenshots below : ![11](https://user-images.githubusercontent.com/60205243/202588930-c6157479-0a4a-4863-8527-fac4110cd6c1.PNG) ![2222](https://user-images.githubusercontent.com/60205243/202588944-dcb43f99-efee-44a1-b1c7-1d3ba967d3f1.PNG) I thought it was because a bugs on database or something (I don't know exactly, I'm just a beginner). But the truth is this problem doesn't appear when i'm not using Cloudpanel. Can someone help fix this issues? So we can add multisite on the same domain without a problem, thanks. Cloudpanel is really great panel, just need little fix ### Possible Solution _No response_ ### Additional Context I'm using Google Cloud server, with Cloudflare CDN and running 2 websites on that server using Cloudpanel to manage it
Sign in to join this conversation.