Is there a way to define wp_blogs domains in wp-config?
Question
In my multisite setup I have multiple environments that I want to share the same database, but use different domains.
- server1.example.com
- server2.example.com
- example.com
... each of those would point to the same database. This works perfectly fine in a standard WP install using define( 'WP_HOME', 'http://server1.example.com' );
and define( 'WP_SITEURL', 'http://server1.example.com' );
.
When you add multisite to the mix it breaks.
The problem is that the wp_blogs
table defines the domains too, so I need a way to define them in the config file. Is there anyway to do that?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange