[wp-trac] [WordPress Trac] #23221: Multisite in subdirectory with root site address
WordPress Trac
noreply at wordpress.org
Fri Nov 4 12:18:19 UTC 2016
#23221: Multisite in subdirectory with root site address
----------------------------+------------------------------
Reporter: grapplerulrich | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 3.5
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: multisite
----------------------------+------------------------------
Comment (by renatofrota):
Replying to [comment:33 nacin]:
> Essentially, we made a decision in #19796 that having /wp/ in the URL
was ugly. But everything still works. Let me explain:
>
> Single site has no requirement for rewrite rule support in Apache, IIS,
nginx, etc. Multisite, however, does. So for single site, you have home
URL being example.com and site URL being example.com/wp/, where the files
are. But in multisite, we can keep the files in example.com/wp/wp-admin/
(for example), set the URLs to example.com/wp-admin/, then use rewrite
rules to rewrite /wp-admin/ to /wp/wp-admin/. This keeps URLs clean and
the filesystem clean.
>
> We use this setup on wordpress.org. It works fine. Something like
https://gist.github.com/danielbachhuber/9379135 is only necessary if you
''want'' /wp/ in the URL. If you do not, then when you set up a network
with /wp/ being your site URL, everything will be handled for you in the
rewrite rules that are generated.
This may be working on wordpress.org but is still not working on the
WordPress we download and run ourselves.
I just tried a setup, steps:
1. install WP on /wp/
2. copy index.php and .htaccess to / and modify /index.php to require wp-
blog-header.php from /wp/ subdirectory
3. activate WPMS (subdirectory based network)
4. modified .htaccess and wp-config.php as suggested by instructions on WP
Dashboard and re-login
Now domain.com/wp-admin redirects to domain.com/wp/wp-admin (OK here, I
don't mind if the "ugly" /wp is displayed or not, since the redirection
works) but all links related to network admin are being displayed as
domain.com/wp-admin/network and this is not working as expected (redirect
loop).
I am seeing this is open for years. Is it still planned to be fixed by any
form (with/without directory being displayed on URL, I don't mind) or
should I give up and install WP on / ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23221#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list