404 on page 2 multisite

Every front end page request on a WordPress site produces a main query. The template that WordPress decides to load is based on the results of that main query (you can see the order that WordPress does these things by looking at the Action Reference page). Despite the fact that you never output the results … Read more

Multisite: Redirect to appropriate domain if subdomain doesn’t exist

If you want all unregistered subdomains to redirect to the main domain site: function prevent_multisite_signup() { $domain = $_SERVER[‘HTTP_HOST’]; $domain = explode(‘.’, $domain); $domain = array_reverse($domain); $domain = “$domain[1].$domain[0]”; wp_redirect($domain, 301); exit; } add_action(‘signup_header’, ‘prevent_multisite_signup’);

What does multi-site WordPress application mean?

You would need to contact the super administrator if you want more capabilities however here’s a summary. Super Admin – somebody with access to the site network administration features and all other features. Source http://codex.wordpress.org/Roles_and_Capabilities The capabilities of the site administrator role are reduced in a WordPress Network. Site admins cannot install new themes or … Read more

How to temporarily redirect front page of a network to one of the sites/blogs?

This code goes in your child themes functions.php file. add_action( ‘template_redirect’, ‘wpsites_redirect_ms_front_page’ ); function wpsites_redirect_ms_front_page() { if ( is_main_site() && is_front_page() ) { wp_redirect( ‘http://www.example.dev/’, 302 ); exit; } } Something like this should work (untested). Modify Code Simply swap out the URL in the code above. You can also change the 302 to 301 … Read more