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
- Multisite: Develop locally using production images with .htaccess
- 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]
- Protect Uploads in Multisite
- Domain redirect in WordPress multisite
- Suppress subdirectory from WordPress Multisite primary URL
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Sub-subdomain getting redirected to main domain
- Members area with externally-managed htaccess / htpasswd authentication?
- wordpress htaccess is hijacking my .mp4 files
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- How to stay logged in on a multisite with different domains?
- WordPress mutisite migration
- Dissolve Multisite while making site #5 the main site?
- 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
- Issue with htaccess redirection in WP Multisite
- Redirect only posts to New Domain
- WordPress MultiSite login to the respective site
- 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
- 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
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- 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
- Redirect old uploads after moving to multisite
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- WordPress: how to change URL for individual MultiSites?
- 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
- Multisite Subdomain Redirect Mask
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- Multisite Sub domains not working
- Multisite Login problem
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Multisite Subdirectory Site Dashboard redirect loop
- Https and Http Login Issue on WordPress Multisite
- 404 not working on main site on multisite
- Working with Reverse Proxies and Multisite Installation
- Infamous admin login redirect
- Is there something I need to know in order to use WordPress on foreign (Swedish) TLDs?
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- How to fix redirection of Post/Page of wordpress inside the wordpress?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- Rewriting request to another site
- Multisite htaccess with domain rewrites
- WordPress Multisite: Login to all subsites at once
- Multisite – site user limited only for this site
- User not staying logged into one of sub sites in multisite after SSL
- WordPress automatic Login on other page?
- how to make a cronjob run, when user needs to be logged in
- WordPress Network with SSL for multiple domains
- Nginx rules for subdomain multisite install (Bedrock)
- Why does this multisite redirection loop vanish when I add “www.”?
- How To Change the URL of a WordPress Multisite
- Multisite, different domains, optional subdirectory, and htaccess
- WP Multisite .htaccess interferes with cgi-bin
- Multisite: Redirect Subsite Administrator to Subsite Home Page, Bypassing Dashboard
- Admin user getting redirected to /wp-admin/user
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- Redirect extra url to Multisite in folder
- Is it possible to create a login for restricted visibility?
- Some Subdomains on a Multisite Install Not Found
- Permalinks in Multisite not working
- Multisite website configure Domain issue
- WordPress Multisite restict user access
- External rewrite rules missing in htaccess – Multisite
- 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