Your best bet would be to match $_SERVER[‘HTTP_HOST’] variable against desired host. Unfortunately wordpress init WP_DEBUG constant before multisite functions are loaded.
Related Posts:
- How to individually set WP_DEBUG on a sub-directory multisite?
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Add additional Network constants to wp-config.php dynamically
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- multisite 404 error for subdirectory
- WP-Admin not working properly at WordPress multisite with subdirectories
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- COOKIE_DOMAIN setting confusion
- domain mapping confused about sunrise
- Is there a way to define wp_blogs domains in wp-config?
- WordPress multisite subdirectory redirect infinite loop issue
- Multisite with path, how to change the main site
- Suppress subdirectory from WordPress Multisite primary URL
- How to move theme directory but not plugins/uploads out of WordPress root directory?
- how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS
- multisite custom directory
- Multisite Network menu links not updating
- How to disable the default WordPress redirect to non-www URLs?
- Multisite on localhost using xampp
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- Error uploading files bigger than 58 MB
- Use external database with local multisite
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- Multisite Create Site not working
- Custom port problem with local MU installation
- MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE
- Multisite Sub domains not working
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- If statement in wp-config.php, is it possible?
- Update WP install to WP network & it broke the DB connection
- How to modify wp_config file for set up subdirectory?
- Changing from localhost:8888 to localhost
- Problem with new Multisite Installation
- Certain lines added to our wp-config.php file are being removed, every day
- Getting file errors in a WordPress Multisite ADMIN
- Domain not redirected correctly with WordPress Multisite
- local wordpress multisite not working on AWS development server “error establishing database connection”
- Working locally with remote DB not working with multisite
- No input file specified after enabling multi site
- How do I enable Multisite on WP 3.7.1?
- Multisite subdirectory blogs missing slash
- Cookies in Multisite network where sites have their own domain name?
- Many big issues in the website, WP_Debug not showing
- I’m getting a 404 NOT_FOUND CODE: ‘DEPLOYMENT NOT FOUND on wordpress multisite installation on my sub domain
- Control verbosity level of WP DEBUG?
- Create multiple subdomains for multi-site from a database
- How to map a specific multi-site blog to a folder?
- multisite htaccess 301 redirects
- using 1 form shortcode (si or cf7) for all multisite sites [closed]
- How to manage multiple domain with different languages on each domain with single wordpress installation?
- Is there any fundamental difference in developing a wordpress multi-network site?
- merging two multisites
- Redirect loop (only for multisite network admin)
- Deleting a user in multisite
- Recover from failed multisite conversion
- Cookie nonce is invalid – Multisite
- Multisite setup on VVV with bedrock
- Multisite Network Localisation
- Can set_transient() be used in multi-site?
- What would you recommend for hosting 10+ individual wordpress websites?
- Redirect only posts to New Domain
- Image problem – Multisite image upload broken
- web.config breaks the themes for sub-directory multisite
- Add a user to a specific blog when they register?
- Different use for WordPress Multisite
- Multisite User Sync Question about blog authorship
- WP-CLI cron on multisite using WP-Toolkit “succeded”, but callback not executed
- WordPress multisite suddenly malfunctioning
- Cannot use pre_set_site_transient_update_themes from within a theme in multisite
- Multisite wordpress config on multidomain
- Is this a job for WP MultiSite with domain mapping plugin?
- FeedWordPress duplicated posts problem
- Domain mapping with Multisite links are wrong
- Install multisite wordpress on a subdomain and map to top level domains
- Get latest blog post from another multisite blog
- How to use different domains subdomains in WP multisite? [duplicate]
- How to make multi site with single Database?
- Automatically Insert Into Post when uploading Media
- WPMU function get_blog_details, last_updated/registered and formatting time and date string
- How to fix redirection of Post/Page of wordpress inside the wordpress?
- Multi Site Language switcher
- How to use the same “wp_posts” table for different subdirectories in the same DB?
- What is the proper way to merge 2 WordPress blog instances
- Multisite WordPress doesn’t work properly on virual hosts
- Installing other applications alongside WordPress multisite subdomains
- Where does WordPress Mu DB store the link of network admin dashboard
- wordpress multisite – handle Database
- Importing Posts into New Website with Same User ID’s
- network admin pages not linked to correctly
- Styles not being applied to multisite setup
- Right approach in doing this signup process
- Multisite main theme changes do not show up in child sites
- Editing links to new Site url when user Creates a New Site
- Access from template info of another blog (in the same network)
- WordPress Multisite restict user access
- wordpress multisite with already existing subdomain
- Why the sites dropdown in multi-site installation is different from the list of sites when seen full page?
- WPML is blocking WP core update