Password protect a single site on network

You can either use a powerful plugin such as Multisite Privacy by WPMUDEV, or you can use the following code which I developed for a project of my own. To use this code, either create a plugin with it that you only activate on the site to protect, or if that sounds too difficult, you … Read more

WordPress Multisite Wildcard Subdomains on Plesk

You have forwarded the wildcards to the wrong subdirectory this is why you are seeing the Plesk default page. The wildcard subdomain rule should point to the folder of your wordpress multisite installation. WordPress reads the URL from the request and then internally routes to the correct site. If it’s not pointed to right place … Read more

WordPress multisite with subdomain and directory simultaneously

It can be done, I’m actually using it for my private multisite installation. Install WP multisite and set it up in “subdirectory-mode” Install and setup the Domain Mapping plugin by WPMU Create a subdomain and point it to your installation. Add this subdomain via the Domain Mapping plugin. By default your new sub-sites are accessible … Read more

Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter

There is no built-in way to do it. The .htaccess is “printed in the screen” of the wp-admin ones you are setting up the multisite (the same for wp-config.php). That info is never write directly in .htaccess file like the single site. The wordpress core code for multisite / htaccess is here: https://github.com/WordPress/WordPress/blob/703d5bdc8deb17781e9c6d8f0dd7e2c6b6353885/wp-admin/includes/network.php#L543

Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite

You’re close. I added a few more places to capture more scenarios and used the HTTP_HOST variable in the rule. The $1 is not needed in the condition as that would match what’s captured in the above condition. <IfModule mod_rewrite.c> RewriteEngine On Rewritecond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteCond %{REQUEST_URI} ^/subsite/? [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] </IfModule> … Read more

error code: 521