Multisite and Multidomains WordPress – WordPress Development Stack Exchange


I had a wordpress that was served from with permanent redirection from and that is one main domain and two redirections. I then configured a wordpress multisite using and, and some others subdomains.

define( 'WP_ALLOW_MULTISITE', true); //Manually allowing multisite
define( 'MULTISITE', true);
define( 'SUBDOMAIN_INSTALL', true);
define( 'DOMAIN_CURRNT_SITE', '' );
define( 'PATH_CURRENT_SITE', "" );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

It went well and I thougth everything was fine but after double checking, only and the subdomains (,,…) are working. So that the main site is only available from and no more from and . The other domains now give back a 500 Error establishing a database connection.

I host on OVH VPS and use a traefik/docker stack if that matters.

Any advices on what to check/do, I can updates with some configs if needed.

Corentin Jacquet 2 years 2022-02-21T10:52:43-05:00 0 Answers 0 views 0

Leave an answer