[wpmu-trac] [WordPress MU Trac] #995: Non existing page in sub-folder blog returns HTTP status 200 and loads template page.php

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Jul 10 19:03:37 UTC 2009


#995: Non existing page in sub-folder blog returns HTTP status 200 and loads
template page.php
------------------------+---------------------------------------------------
 Reporter:  augustas    |        Owner:  donncha 
     Type:  defect      |       Status:  assigned
 Priority:  normal      |    Milestone:  2.7.1   
Component:  component1  |      Version:  2.7.1   
 Severity:  major       |   Resolution:          
 Keywords:  need-patch  |  
------------------------+---------------------------------------------------
Comment (by tomgf):

 Another possible fix, tested on both sub-domain and sub-directory
 installs:

 {{{
 - if ( empty($PHP_SELF) || ( constant( 'VHOST' ) == 'no' &&
 $current_blog->path != '/' ) )
 + if ( empty($PHP_SELF) || ( empty($PHP_SELF) && constant( 'VHOST' ) ==
 'no' && $current_blog->path != '/' ) )
         $_SERVER['PHP_SELF'] = $PHP_SELF =
 preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]);

 }}}

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


More information about the wpmu-trac mailing list