Your easiest route is probably to use a plugin like Restricted Site Access (disclaimer: written by my boss) to redirect a user who isn’t logged in elsewhere, like the network home or something else. There are a few other similar plugins out there.
Another option would be to take the code you say you’d put in your theme and make your own little plugin with it instead. Then you can activate it for just that site. You’d need to be careful about which hook you use to check the user and then redirect.
Related Posts:
- Multisite on Windows with wildcard subdomains
- Are nested subdomains possible with a subdomain multisite?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- How to use alias domain for multisite installation?
- SSL wildcard issue for wp multisite subdomains
- Wildcard subdomain for the same site
- Create multiple subdomains for multi-site from a database
- WordPress Multisite. Can domain be used instead of subdomain?
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- Set subdomains live in a next step
- Multisite installation combining subdomains and subdirectories
- How does wordpress multisite manage subdomains?
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Subdomain multisite gives 404 on sub sites
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Testing Multisites with vagrant or Can I use multisite with only an IP address (without domain name)
- Changing Multisite URL after the subsite has been in use
- Non-wordpress subdomains on Multisite Installation
- Sub-subdomain getting redirected to main domain
- Possible to create a multisite network where the main site is non-WP?
- On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What’s better?
- Multisite Subdomain Using More Resources Than Others?
- Changing admin sub-domain in WordPress multisite
- Subdomain login problems
- Change multi-site installation from sub-domains to sub-directories
- How can I have multiple URLs pointing to single WordPress installation?
- Not able to access dashboard of subdomain
- Wordrpess Subdomains (Multi-Site) without Wildcard
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Can I use two different domain names with a WordPress multisite network?
- WP MU – Accessing ‘Domain-Mapped’ WP-Admin with a subdomain
- Icon font not working on subdomains of multisite
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- How deactivate the http-api
- problem with main site (root domain) redirects to subdomain (multisite)
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- How to redirect one page on the subdomain
- Start with multi-site feature now or later?
- Multisite – 404 when accessing sub-sites
- Migrating wordpress multisite and domain mapping plugin
- Create subdomain out of sight the wp multisite
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Is the Multi site functionality a viable option for Country and Language targeting?
- Multisite not using subdomains as hostname in from address when sending emails
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- WordPress Multisite blogs not working after domain swap
- Multisite, Subdomain, shared NFS directory Linux HELP
- Redirect to localhost after installing Multisite on server
- Login problems on multisite installation with different domains
- One Domain, Two Installs of WordPress
- MU/Subdomains + Domain Mapping + SSL?
- Multisite install w/ Sub domains on a subdomain
- How to show only blog-domain instead of the whole permalink in the loop
- When creating a multisite, the sub-folders option is not available
- Multisite – getting a 404 for additional site created using subdomain install
- WordPress MU subdomain vhost
- wp_get_attachment_image_src on multisite
- Install multisite wordpress on a subdomain and map to top level domains
- Creating a subdomain network in a subdomain
- Programmatically creating site in a network
- WordPress Multisites or Multiple WP Single sites?
- Https and Http Login Issue on WordPress Multisite
- Migrate single site to Multisites with plugins, cPanel and already working subdomains
- How to use different domains subdomains in WP multisite? [duplicate]
- Should i install multiple wordpress for one site?
- WordPress Multisite with subdomains on different domains
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- Using Same User Database on Subdomain
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- Subdomain is not working
- WordPress Multisite and how to apply sef urls only to specific sites
- How can I have two or more WordPress Pro (paid) themes that form a single website?
- multisite installed on subdomain now want another subsite on subdirectory
- Can I run both a wordpress blog plus another service(ex. a Shopify store) on the same domain?
- WordPress Multisite loads wrong subdomain dashboard
- After switch domain, some parts of my site still point to my old domain
- WordPress Multisite with Wildcard Certificates not mapping correctly
- Looking for most efficient way to ‘deploy’ single wordpress page to multiple external subdomains
- Multisite installation steps?
- Multisite network subdomains doesn’t work
- Installing other applications alongside WordPress multisite subdomains
- How to connect existing subdomains to new wordpress multisite?
- WordPress Multisite Network Subdomain
- Multisite WordPress Configurtion
- Using both subdirectory and subdomains in Multisite
- WordPress MU with subdomain
- Multisite, different domains, optional subdirectory, and htaccess
- Configuring Multisite with subdomains
- Subdomain Wp-Admin Not Found
- How do I remove ‘www.’ from all internal links in self-hosted multisite?
- Some Subdomains on a Multisite Install Not Found
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Not being allowed to use some terms in Add New Site in WordPress
- Multi site root site installed on subdomain, with child sites as subdirectories
- Integrating WordPress for blog and other content pages in a web app
- Cookies in Multisite network where sites have their own domain name?
- Make multisite non-existing subdomains go to homepage instead of Index of/ page
- Multisite subdomain microsite on secondary domain
- wordpress multisite with already existing subdomain