[wp-trac] [WordPress Trac] #23221: Multisite in subdirectory with root site address
WordPress Trac
noreply at wordpress.org
Sat Feb 14 17:40:56 UTC 2015
#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 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23221#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list