[wp-trac] [WordPress Trac] #12758: Better server checks in network.php

WordPress Trac wp-trac at lists.automattic.com
Tue May 25 03:57:48 UTC 2010


#12758: Better server checks in network.php
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  high          |   Milestone:  3.0        
Component:  Multisite     |     Version:             
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by Frumph):

 Alright I figured it out, it's in the wordpress code someplace that the
 problem is, why? cause this is why.

 {{{define('VHOST', 'yes');
 // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog
 does not exist or is a 404 on the main blog. (Useful if signup is
 disabled)
 // For example, the browser will redirect to http://examples.com/ for the
 following: define( 'NOBLOGREDIRECT', 'http://example.com/' );
 // Set this value to %siteurl% to redirect to the root of the site
 // define( 'NOBLOGREDIRECT', 'http://frumph.net' );
 // On a directory based install you must use the theme 404 handler.
 }}}
 If I uncomment the // define( no blog redirect, which it was it will have
 the problem where the main site doesnt go to the 404 error page.   if I
 keep it there, the url rewrite rules I wrote above will work fine.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12758#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list