$site=$_SERVER['SERVER_NAME'];if(strpos($site, 'site1')) // $site 里含有 site1 require('./site1/wp-blog-header.php');else require('./site2/wp-blog-header.php');