I fixed it changing the urls of the sites to include the /blog/
suffix. You cannot create the site with a slash but you can change the site URL once it is created.
Then changing the RewriteRules in .htaccess to:
RewriteRule ^([_0-9a-zA-Z-]+/blog/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteRule ^([_0-9a-zA-Z-]+/blog/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/blog/)?(.*\.php)$ $2 [L]
Finally, adding some code to wp-config.php
to properly define the PATH_CURRENT_SITE
and BLOG_ID_CURRENT_SITE
variables:
define('PATH_CURRENT_SITE', $path_current_site);
define('BLOG_ID_CURRENT_SITE', $blog_id_current_site);
Related Posts:
- How do I remove/delete an old super admin user?
- Setting up a wordpress network with third level domains
- How will self-hosted WordPress work with Google Page Speed Service?
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- What methods should be used to fend off splogs in a multiuser install? [closed]
- WordPress 3 Multisite using subdomains.- DNS on Cpanel question
- Remove Site Name from register form – Multisite
- Set up collaborative site
- Add role across network in multisite
- Transfer Subdomain site to Multisite setup
- WP REST API – Multisite – get posts from all sites
- How to Login Once to an Entire WP Multisite Network
- NGINX Multisite Rewrite rules
- On Multisite: Loop to Show First Four Images of Recent Posts Across Network
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- Get source from the_post_thumbnail
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Identical members roles on all sites in a multisite
- Fixing media links after importing to multisite
- How do I maintain static directories on multisite subdomains?
- WP-CLI can’t list posts
- Woocommerce and different checkout field for different countries
- Why is multisite rest API keep giving me results for root site only?
- How to stay logged in on a multisite with different domains?
- wordpress multisite subsite rewrite rules not working for videos
- What should I do? A multisite, a single website or many websites? [closed]
- Custom Post types and Custom fields in Multisite
- Can a user spread virus on my Multisite?
- Login on Multiple Sub-Domains without Multisite
- Prevent images on self-hosted WordPress from being served from WordPress.com
- Use another author.php if different multisite subsite?
- Subsite with different template, and content
- What is best forum script available to integrate with wordpress?
- Changing path for media upload folder in wordpress multisite
- Link to Network Admin Broken After Switching to HTTPS
- Making 2 WordPress sites mutually searchable and more
- Multi-site get_bloginfo(‘stylesheet_directory’) referring to sub-folder
- Unable to apply theme to WordPress Network Site install
- How to convert multi-site to single site
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- Viewing / Editing A Multisite website after domain has expired
- Redirect old uploads after moving to multisite
- URL for images folder on Multisite
- Debugging unserialize errors [closed]
- new site admin not able to browse categories in wordpress multisite
- Best architecture for multiple websites
- Admin permission for creating blogs in multisite
- Will WP work on a multi-server environment? [duplicate]
- Amazon EC2 and static page Caching (Multisite): How to enable Caching with multiple instances?
- Multisite / Network – Stable?
- Eliminate MultiSite Network Splogs
- How to check if page exists in Multisite?
- Copy user role on multisite so the user can access subsites with same role
- WordPress MU wp_posts table
- WordPress Multisite (sub-directory based), change subsite URL
- 403 forbidden when changing settings on WP Multisite non-main sites
- Multisite 404 for pages in includes subdirectory
- WordPress multisite with only two level of sub-domains?
- WordPress multisite with separate domains
- Multisite are not creating folders for the subsites
- Multisite infinite redirect loop
- Customize or avoid new admin email address notification
- After setting up multisite on localhost, requests to localhost redirect to production domain
- How to use same theme in different languages?
- WordPress Multisite Dilemma!
- Blog & Portfolio setup
- WordPress multisite installation subdomains not working properly
- How can I create network with different domains?
- Problem moving wordpress multisite
- My Sites link in multisite is incorrect
- local wordpress multisite not working on AWS development server “error establishing database connection”
- WP Multi Site – configure Sub domain pointing to parent sub directory
- WordPress Multsite Network site under another network site
- WordPress Upgrade – API files returning 404 on Multisite
- Activate User account for Sub Site broken
- Migration of Multisite WordPress site from http to https
- new WPMS site not working / Q setting up new site/subdomain
- WordPress Multisite – Auto enable theme
- Network redirect issues
- Redirecting two Multisite domains to Single site on different host
- How to add ping list in WordPress multi site?
- Can I run a second wordpress site as a subdomain without using multisite?
- WordPress Multisite subdomains and sharing the same upload folder
- REST or Alternative Method for New User && New Site && Assign User to New Site as Admin?
- Problem in adding new site on WP multisite
- How to configure WordPress for multiple blogs without using multisite?
- New wordpress uploads are broken
- How to create child/sub user under parent user
- Show all posts on a twentythirteen multisite
- Make different sites on multisite reference same script
- Problem with paging on Multisite
- Is there a way to add a function that will get run after a blog is created?
- Add blog languages to blog-name inside my-site-list in admin-bar
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- WP3.6: PHP Fatal error: Call to undefined function wpmu_delete_user()
- Merging versions of wp_posts based on post_title
- Moving a primary domain to another host as secondary cause errors in some image URL
- WordPress Header Not Showing on Sub Pages