If you want to provide restricted access, you should add an additional string with the /wp-login.php URL. For example:
http://example.com/wp-login.php?restricted_site_access=key_string
If the URL does not have such a string parameter, then you can redirect them to a 404 page; you don’t need to rewrite the .htaccess file for it.
Related Posts:
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- Is there a is_user_logged_in() for multisite?
- multisite 404 error for subdirectory
- Multisite htaccess on localhost with WP as an SVN external?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Unable to login to new custom domain on multisite?
- Multisite Subdomains result in 403 Forbidden
- WordPress Multisite – Multiple subfolders for blogs
- WordPress multisite subdirectory redirect infinite loop issue
- Multisite: Develop locally using production images with .htaccess
- share login/logout sessions across two installs?
- How to Login Once to an Entire WP Multisite Network
- multisite htaccess 301 redirects
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- Multisite wordpress and subdomain URL collisions
- Error 101 after upgrading WordPress
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Nginx rules for subdomain multisite install (Bedrock)
- Protect Uploads in Multisite
- Basically the opposite MultiSite URL question that most people ask
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- Multisite – Redirect All Users to Subsite Home Page on Subsite Login
- 500 error when using virtual host
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Multisite without .htaccess
- .htaccess 301 vs. 302 Enforcing HTTPS
- Images uploading to wrong directory after changing to multisite
- Sub-subdomain getting redirected to main domain
- Members area with externally-managed htaccess / htpasswd authentication?
- How to properly force https and www on multisite with Apache HTAccess
- Subdomain login problems
- WordPress Multisite local: wp-login.php refreshes on login Chrome Browser
- wordpress htaccess is hijacking my .mp4 files
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- How to stay logged in on a multisite with different domains?
- WordPress mutisite migration
- Dissolve Multisite while making site #5 the main site?
- Multisite, can’t see sub blogs
- Login on Multiple Sub-Domains without Multisite
- How to disable the default WordPress redirect to non-www URLs?
- Fresh Multisite Install – Can’t Log In
- Create rewriterules for different domains in htaccess file with WP multisite
- WordPress multisite in subdirectory, not root, and remove base folder from url
- Auto Redirect after login
- Redirect subdomain in Multisite installation?
- Issue with htaccess redirection in WP Multisite
- Multisite installation not in root – how to make live?
- Redirect only posts to New Domain
- WordPress MultiSite login to the respective site
- Multisite on localhost using xampp
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- add_rewrite_rule on multisite doesn’t work
- Temp URL Redirect Loop
- Error uploading files bigger than 58 MB
- Multisite – 404 when accessing sub-sites
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- .htaccess rules for blocking bots with an extra condition
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- What happens if I use .htaccess of network multisite on a single site installation?
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Wrong filepaths and admin page infinite reload after migrating to aws bitnami
- URL redirect/rewrite rule wordpress multisite
- Good way to block users within a multisite setup without deleting them?
- WordPress multisite .htaccess causes 500 error on old *.php URLs
- URL without www redirect directly with submission page – Multiwordpress install
- Multisite Redirection to new domains
- Multisite Subdirectory with same domain subdomain
- Run additional service on domain with WordPress Multisite?
- Redirect old uploads after moving to multisite
- Automatically login user across multisite
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- WordPress: how to change URL for individual MultiSites?
- Multisite Create Site not working
- How to host unrelated pages on WordPress domain
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- URL for images folder on Multisite
- Multisite install w/ Sub domains on a subdomain
- How to write RewriteRule for login in multisite
- Multisite subdirectory blogs missing slash
- Best Way to Setup a Network of WP Sites?
- Multisite website configure Domain issue
- WordPress Multisite restict user access
- External rewrite rules missing in htaccess – Multisite
- Error Message when logging into WordPress on Xampp
- 404 error in dashboard of subdomain of multisite
- WordPress MU: Cookie error when trying to login on network WP instance
- something in database is causing me to not be able to log into network admin of multisite
- Why am I getting the login screen in wp-admin->Appearance->Customize?
- Keep users logged in across multisite in wordpress (for various domains)
- The wp-admin url for each site does not work on WordPress multisite