[wpmu-trac] Re: [WordPress MU Trac] #901: Allow blogs on 'www.<site-domain>'

WordPress MU Trac wpmu-trac at lists.automattic.com
Sat Feb 14 12:35:53 GMT 2009


#901: Allow blogs on 'www.<site-domain>'
--------------------------+-------------------------------------------------
 Reporter:  gwagenknecht  |        Owner:  somebody
     Type:  enhancement   |       Status:  new     
 Priority:  normal        |    Milestone:          
Component:  General       |      Version:          
 Severity:  major         |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by gwagenknecht):

 A fix is very simple. Simply replace the following line in {{{wpmu-
 settings.php}}} (line 8 in 2.6.5):
 {{{
  if( substr( $domain, 0, 4 ) == 'www.' )
 }}}
 with this line:
 {{{
  if( constant( 'ALLOW_WWW_DOMAINS' ) != 'yes' && substr( $domain, 0, 4 )
 == 'www.' )
 }}}

 and add the following to {{{wp-config.php}}}:
 {{{
 // Uncomment to allow domains starting with www
 define('ALLOW_WWW_DOMAINS', 'yes' );
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/901#comment:2>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list