Just came up with a solution to this issue posted here https://stackoverflow.com/questions/12958123/override-wp-siteurl-and-wp-home-for-wordpress-multisite/
Basically you do not copy the wp_site
and wp_blogs
tables to your development installs when pulling in a production database, and have pre-configured them locally for your development URLs. You then leverage a network-wide plugin to set the WP_SITEURL
and WP_HOME
values based on configuration in wp-config.php.
Will likely turn this into a plugin once I have time to test it further.
Hope that helps!
Related Posts:
- What are options are there to implement a multi language site
- Where is the robots.txt stored for a WordPress Multisite install?
- Settings API in Multisite – Missing update message
- WordPress Multisite Multiple child theme
- WordPress Multisite: How to make all media library items available for every site?
- How to setup LDAP authentication with WP multisite
- Create multiple subdomains for multi-site from a database
- How to map a specific multi-site blog to a folder?
- WordPress Multisite. Can domain be used instead of subdomain?
- Built to scale, or worry later?
- Multisite Subdomains result in 403 Forbidden
- Set subdomains live in a next step
- Is there any fundamental difference in developing a wordpress multi-network site?
- merging two multisites
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Should multi-language site using multi-site architecture have default language in base site?
- Multisite Installation: how do I setup global search?
- favicon and multi site
- Register email as username
- Two WordPress sites sharing the same database
- Recover from failed multisite conversion
- Help with updating a wp_get_sites to get_sites and sorting by alphebetical order
- Multisite Subdomain Using More Resources Than Others?
- Can I use multisite functions in a single-site installation?
- Multisite – create new site with precreated pages, menu etc
- Add custom user fields in Multisite USERS page
- WordPress multisite with multiple parent domains
- WP 4.4 – domain mapping for sites within a multisite network?
- Can I use two different domain names with a WordPress multisite network?
- Restrict Admin Capabilities in MultiSite
- Installing multisite on domain with existing subdirectory wordpress installations
- wp_redirect not working on admin menu page
- How to disable the default WordPress redirect to non-www URLs?
- Bulk theme settings in wordpress multisite
- Permalinks not working using wordPress Networking with custom post types
- Should I use a multisite installation to achieve a multi-language site?
- Multisite domain naming
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- Can is_page and is_front_page both be true?
- Switch a single site to a multi-site
- migrate a MU sub blog to a single install
- Preferred method of setting user role only works on Main Site in Network
- How to share primary navigation of main site with subsites usining switch_to_blog
- WordPress 4.5+ Multisite Domain Mapping
- Register submenu on network menu from the subsite
- new multisite, old db
- Multisite sub-directories IIS 7.5 change media/uploads location
- One Domain, Two Installs of WordPress
- add_rewrite_rule not working in WordPress Multisite
- Create a page for a theme only
- How do I find where the current value of the option ‘registration’ in the SQL database?
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- is_main_site() Always Returns True
- How do I get the site url from a Block (within the block editor)
- Strange multisite issue where all sites return same id with get_current_site()
- Permalink with a Category and then a Post
- Creating a subdomain network in a subdomain
- Multisite – One Site with multiple URLs
- Sub-sub folders of WordPress Multisite subdirectory
- Delete all user’s meta without knowing all the ‘key’
- Allow editors to switch sites (Multisite)
- moving tables between multisite installs
- How much resources are good enough for 3.9.2
- Best Practise: Linking to WPMU sites from other sites
- Stylesheet and JS linking error in WP multisite nested path
- Common user login for two different wordpress installation and bbpress
- Can I run multiple blogs from my local machine
- Trouble with SQL SELECT inside switch_to_blog()
- WordPress Multisite and how to apply sef urls only to specific sites
- Custom css – WordPress Multisite
- Migrating from domain mapping plugin to native domain mapping
- how to convert a wp multisite into a single site with content from subsites
- Getting stylesheet error after setting subdomain to false in multisite
- “Multisite support is not enabled.” After Multisite Config Changes
- String translation within WordPress multisite with i18n not working on all sites
- Add new sites on the same level as the parent URL in a multisite
- Search returns “Nothing Found” on a sub directory
- Add radio button on theme at the select of the theme the same theme should be activated after generation of new site in multi site
- Moving wordpress multisite to new domain
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- WordPress automatic Login on other page?
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- Changed singlesite to multisite, but new site shows Maintenance
- multisite shared settings
- Multi Site Translate Strings
- Multisite Demo Data for New Site
- Responsive Wordress Site – Serve different post types to each device
- Should I use MultiSite for a subdomain based wp site?
- Can’t import posts in multisite
- User registration problem on multisites web
- How to apply specific plugins to affect all sites (Multisite Network)
- Admin user getting redirected to /wp-admin/user
- Getting 404 after Update in Multisite
- Is there a way to have wordpress 301 versus 302 urls by default?
- first load of the page gives 404 error
- Some Subdomains on a Multisite Install Not Found
- personal_options hook on WordPress multisite
- Multi site root site installed on subdomain, with child sites as subdirectories
- Integrating WordPress for blog and other content pages in a web app
- Redirect to Multisite site 2 if site 1 has a setting