我在这里找到了一个补丁:http://core.trac.wordpress.org/ticket/15936
您基本上需要修改wp includes/ms设置。php如下(删除“-”行;添加“+”行):
@@ -26,18 +26,8 @@
if ( !isset( $current_site ) || !isset( $current_blog ) ) {
+ $_SERVER[\'HTTP_HOST\'] = preg_replace( \'|:\\d+$|\', \'\', $_SERVER[\'HTTP_HOST\'] );
$domain = addslashes( $_SERVER[\'HTTP_HOST\'] );
- if ( false !== strpos( $domain, \':\' ) ) {
- ....
- wp_die( /*WP_I18N_NO_PORT_NUMBER*/\'Multisite only works without the port number in the URL.\'/*/WP_I18N_NO_PORT_NUMBER*/ );
- }
- }