Non-wordpress subdomains on Multisite Installation

The WP Codex gives two examples of excluding a subdirectory from multisite’s control. .htaccess method (as Karthik noted) Virtual host method .htaccess Being sure to call the sub rewrite BEFORE the rewrite of ww.domain.com to domain.com RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} subdomain.domain.com RewriteCond %{REQUEST_URI} !subdomain/ RewriteRule ^(.*)$ subdomain/$1 [L] # Rewrite http://www.domain.com to domain.com … Read more

How to stop subdirectory wordpress install adding head elemets to entire site?

This is because you call get_header() which already require your theme header.php, in which the meta tags are defined. You should learn how to use get_header() in the WordPress Codex To summarize: You must rename your wp-blog-header.php file to header-blog.php and place it in your wordpress theme directory. Then you can require it using this … Read more

Close a wordpress blog – keep site as it is but prevent hacks

Why not just disable comments and registration? This comes to mind also: (Redirect all requests to login page or admin pages to homepage. A little irreversible.) $currentURL = $_SERVER[“HTTP_HOST”] . $_SERVER[“REQUEST_URI”]; if (strpos($currentURL, ‘wp-admin’ ) or strpos($currentURL, ‘wp-login’ )) { header( ‘Location: ‘.site_url() ); } Caution: this stops you from logging in also. Edit: And … Read more