The problem is that your .htaccess
rules are referencing a path outside of the document root, which is not allowed in .htaccess files.
Here is the complete working code for your .htaccess
file.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) /subfolder/$1 [L]
RewriteRule ^(.*\.php)$ /subfolder/$1 [L]
RewriteRule . index.php [L]
The code in your wp-config.php
file is correct and therefore requires no change.
Related Posts:
- multisite 404 error for subdirectory
- Multisite 404 errors and non-www redirecting to home page
- Subfolder multisite issue. Themes and plugin files 404
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- Multisite installation on IIS gives 404 trying to access the admin dashboard
- Preview posts returns 404
- Multisite new sites not found(404), main site still works [closed]
- Issue with htaccess redirection in WP Multisite
- Can’t view network plugins.php or upgrade-core.php on multisite
- Multisite – 404 when accessing sub-sites
- WordPress multisite on IIS – can’t open subpages
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- Multisite sub-directories IIS 7.5 change media/uploads location
- 404 redirecting to home [closed]
- 404 on page 2 multisite
- Multisite 404 page
- 404 not working on main site on multisite
- multisite 404 subfolder same name slug as site
- How to convert multisite subdomain from http to https
- Multisite,half the way
- How to add WordPress site to multisite network when both are addon domains
- Built-in Sitemap on Multi-site install produces 404?
- Moved my site to new host now getting 404
- How to set up wp multisite?
- first load of the page gives 404 error
- Subdomain add comment redirect to 404 not found page iis server
- I’m getting a 404 NOT_FOUND CODE: ‘DEPLOYMENT NOT FOUND on wordpress multisite installation on my sub domain
- Plugin for editing options on multisite?
- How to share WordPress core library
- wp-activate.php causing white screen of death
- Change wordpress Multisite default site from side id 1 to side id 2
- How can I have network sites not use year/month folders by default?
- How to prevent hotlinking with htaccess in WordPress and why most common use about it doesn’t work?
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Display custom homepage text based on domain
- Add new domain to ‘My Sites’ using network admin
- How do I set a default theme in multisite network
- WordPress Multisite Login Access
- Switch_to_blog() outside wordpress
- Jetpack Blog Subscriptions on Multisite [closed]
- How to remove the Tools menu item from the WP-Admin menu
- Using $wpdb Class to Pull Recent Comments Across a Network
- Default content for a new site in multi site
- wordpress htaccess is hijacking my .mp4 files
- Is there a way to separate a site inside a network (multisite) into its own wp site?
- Has WP and MU fully merged?
- Why is ‘is_multisite’ returning true when it’s a single install?
- Forcing SSL Protocol for Multisite Subdomain Child Sites + cPanel Configuration
- Website DR using Multisite
- Multisite Network menu links not updating
- multisite hook for Add Existing User
- Upload images from one site to another in Multisite
- Multisite: copy template when a subsite is created
- Iframe being removed only for some users when publishing a page
- Adding new sites to Multisite won’t register in Dashboard
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- How to get permalink using get_blog_post function in a multisite?
- Blocks Rest API rest_cannot_delete
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Multisite with different domain names on different servers
- Good way to block users within a multisite setup without deleting them?
- Redirect One Multisite to Another
- Multisite Installation is all the same site
- Some doubts related to Multi Installation → Media of one of the site can be used on the others?
- Multisite Posting Recent Items in All the Sites Linked with Multisite
- single sign on for wordpress multi site
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- Navigation menu not being assigned Theme Location
- Moving wp-admin folder to a different host in a multisite environment
- Issue with Multisite and SSL
- Custom port problem with local MU installation
- List recent 25 blogs across the network
- What does multi-site WordPress application mean?
- Add wordpress multi sites with different port number from 80
- Create website with a switch between private and business [closed]
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- How to make my third multisite blog start with id 1000?
- Filter meta request
- Does switch_to_blog support array or other ways to show all posts on a network install?
- How to make subdomain and muti-site but wordpress isn’t in root?
- Show buddypress profile fields in a multsite blog [closed]
- Add www to the Root Site in WP Multisite Network
- Multisite problem with unexisting paths to CSS etc
- How to disable Gutenberg editor from Multisite Admin panel?
- Separated Theme file on multi site network in subdomain
- User not staying logged into one of sub sites in multisite after SSL
- register_setting() for single site vs update_site_option() for mu
- Allow users to register on multisite through WooCommerce using the same email address
- How To Change the URL of a WordPress Multisite
- Sending SMTP mail using a server with self-signed SSL
- Site w/ Addon Domain doesn’t show CSS
- WordPress MU – Creating a site takes ages
- Default sub-pages on WordPress Multisite
- WordPress Multisite – Questions about select all posts from all network sites
- Comment reporting for Multisite
- How to display the most popular posts of all the blogs in a mu setup? [duplicate]
- WordPress MS wp-admin/includes/post.php error with shortcode generator
- All links to images are broken in a subdomain multi site environment
- The wpmu_blogs_columns filter is not working
- Map WP Multisite blog.example.com to anotherdomain.com/blog?