0

Lets say i have some sub-domains under one single Multi-site:

How do i HIDE the one site only, from the public access.
(or) Put the site as something like Unpublished (or) dark site?

** HIDE means prevent the "Public" users to see the site. (or) Something like, only the LOGGED IN users via wp-admin (a.k.a) Admins can see the Site and Pages.

Any plugin or approach please?
Thank you so much.

  • Please clarify what exactly you mean by "hide". This can mean plenty of things e.g. not listed in the backend, causing a 404 when visited on the front end, just restricting access while still letting the visitor know the site exists but is non-public,... – kraftner Mar 24 '15 at 14:15
  • Only the logged in users from wp-admin (a.k.a) Admins can see the pages. – 夏期劇場 Mar 25 '15 at 3:08
1

After seeing your clarification in the original question:

Every page inside the subsite you're trying to "hide" would need to be set so that only users with the permission level of "Admin" can see the page.

Anyone will be able to see that the page exists. Users are not logged in or are logged in but don't have the correct permission level that land on the restricted pages will receive a "This page is restricted" notification, where users that are logged in and have the appropriate permission level will be able to see all content within the page.

  • "Every page inside" ?? So this is how WP works to prevent a sub-site from public access? :3 – 夏期劇場 Mar 25 '15 at 3:06
  • See edits above. – andrewdcato Mar 25 '15 at 13:13
1

There are a few options for this:

Premium Plugins:

Open Source Plugins:

Custom:

  • If the site uses a unique theme or child theme, one way is to create an empty file called index.html and store it in the root directory of your sub site. That should work because index.html will be displayed in place of index.php, which is what WordPress uses.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.