[wp-trac] [WordPress Trac] #36507: Invalid URLs in network admin when WP Core is in custom subdirectory

WordPress Trac noreply at wordpress.org
Wed Apr 13 13:56:14 UTC 2016


#36507: Invalid URLs in network admin when WP Core is in custom subdirectory
--------------------------------+------------------------------
 Reporter:  flixos90            |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by flixos90):

 Replying to [comment:2 Latz]:
 > Can't confirm this error. On my local server I have a multisite
 installation called "ms" and the network screen looks correct (see
 attached image).

 I see on your screenshot that your whole sites are actually in a
 subdirectory. The problem I'm talking about is concerning setups where the
 home URL is different from the site URL. This is causing the above
 problems because the `network_site_url()` function does not consider these
 possible differences at all. It only works properly for sites where the
 site URL matches the home URL.

 @dd32:
 > FWIW, WordPress with Multisite expects that URL Rewriting is enabled,
 which as a result makes the wp-admin folder exist at many different
 locations, such as example.com/site1/wp-admin/ and example.com/site3/wp-
 admin will both be loading the files from /path/to/wp-admin/ (Whether
 you're using subdirectory or subdomain shouldn't matter here, they both
 expect the URL Rewriting will paper over the cracks).

 I didn't see any notices preventing me from setting up multisite under
 these circumstances. I would say that some areas in multisite not
 considering the possibility that WordPress is installed in a subdirectory
 different from where the actual `index.php` is located should be fixed
 since it works on non-multisite environments without any problems as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36507#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list