If you’re using WordPress Multisite in subdomain mode, here’s the recommended .htaccess
file WordPress section (see the WordPress support page):
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).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
(Assuming that you started with WordPress version 3.5 or higher. For WP 3.4 and lower, see the support page linked above.)
Your .htaccess
file looks like it’s actually using code from the subfolder Multisite installation.
Related Posts:
- WP MultiSite API – Create new sites
- Does the WordPress API work with multisite?
- WP REST API – Multisite – get posts from all sites
- Why is multisite rest API keep giving me results for root site only?
- Rest API Multisite Site List?
- Blocks Rest API rest_cannot_delete
- What is the way to share data between sites in a multisite
- Copying media from multisite subsites to main website
- How do I get the site url from a Block (within the block editor)
- Is There A Plugin to Create WP Multisite Installs programatically
- Multisite WP-API json v2 : can i fetch all comments on all sites with a single query?
- WordPress API – sign-up to multiple Multisites from one single form
- WordPress multisite REST API connection refused with android – redirects to home page when using IP address in Postman
- Send data from one WP instance to another and process it there
- multi-language multi-site with REST API
- How to run an activation function when plugin is network activated on multisite?
- Specific upload folder for PDFs in custom Post type in WP multisite
- How can I un-reserve a pending username registration?
- Redirect Main Site to Subsite in Multisite WordPress
- WordPress Multisite: Adding actions to only one site
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Can I set some default pages to be created on every creation of a new blog
- get_current_blog_id returns 1 in multisite setting
- On WP Multi sites how many sites…!
- How do I share plugin settings across WordPress network?
- How would I use pre_get_posts to query another site for posts in my multisite network?
- How to set up WordPress Multisite on multiple domains without plugin?
- Multiple domain names under one WordPress Installation
- What is the most comprehensive backup plugin for WordPress (it does not have to be free)? [closed]
- Multisite wordpress and subdomain URL collisions
- WordPress Multisite: Automatically run importer upon creating new site
- Auto create pages on WordPress multi site register
- Add Rewrite Rule to point to a file on the server
- Multisite WordPress nginx uploaded files throw 404
- subdomain mulitsite on localhost in a subfolder
- Exclude main blog from get_blogs_of_user
- Why can’t I delete original user in multisite? Options for manual removal
- Subdirectory multisite installation with several domain names?
- Can’t access WordPress multisite after connecting to domain
- In MultiSite, can some users automatically have Site Admin rights on all sites, without granting them Network Admin access?
- Any downsides on using Multisite for many look-alike-websites?
- Multisite Super admin and Network admin emails
- Is there a way to run upgrade.php for one blog?
- How to run a subdirectory multisite install under a subdomain
- Using Two Themes – One for Main Site, One for Ecommerce
- WordPress Multisite – configuring a local development copy
- Domain name in a WordPress Network
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- All wordpress network subfolder sites being redirected to main site
- Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
- Setup a multisite to a running website
- 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
- How to show different sub sites based on Member’s user name In word press?
- 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
- Multisite / Network – Stable?
- Eliminate MultiSite Network Splogs
- 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
- 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
- WordPress Multisite Dilemma!
- Certain lines added to our wp-config.php file are being removed, every day
- WordPress multisite installation subdomains not working properly
- How to use the same users table on multiple wordpress sites
- 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
- Is it better to embed widgets on posts or pages?
- WordPress Upgrade – API files returning 404 on Multisite
- Activate User account for Sub Site broken
- Migration of Multisite WordPress site from http to https
- 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?
- 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 create child/sub user under parent user
- Show all posts on a twentythirteen multisite
- Network created blogs URL
- Make different sites on multisite reference same script
- Problem with paging on Multisite
- 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
- Multisite Conversion White Screen Error
- Multisite Login Access Restrictions
- Have two domains point to the same content on a wordpress multisite