From 7028f64e49bc363445234eea1158dfde8a39998e Mon Sep 17 00:00:00 2001
From: Ron Rennick
before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like
but any links will not have the "www" prefix. Server Address | @@ -263,43 +266,15 @@ function step2_config() { function get_clean_basedomain() { global $wpdb; $domain = preg_replace( '|https?://|', '', get_option( 'siteurl') ); - //@todo: address no www in multisite code - if( substr( $domain, 0, 4 ) == 'www.' ) - $domain = substr( $domain, 4 ); if( strpos( $domain, '/' ) ) $domain = substr( $domain, 0, strpos( $domain, '/' ) ); return $domain; } -function nowww() { - $nowww = str_replace( 'www.', '', $_POST[ 'basedomain' ] ); - ?> -
---|