If you installed WordPress Multisite starting with version 3.0 to 3.4.2, you’ve got the correct .htaccess
file contents.
However, if you started with a newer version (3.5 or higher)—and I’m assuming you did, if you’ve just installed WordPress Multisite recently—your .htaccess
file should look like this:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
I’m assuming you’re using Multisite in Subfolder mode, since in your question your URL is of the form example.com/site/wp-admin
. (Edit: Also I just noticed that it’s definitely Subfolder per your posted wp-config.php
file.)
See the Codex page on .htaccess
for details.
Related Posts:
- Site Redirecting to wp-signup.php
- Moving a WP Multisite to a subdirectory
- multisite 404 error for subdirectory
- WordPress multisite subdirectory redirect infinite loop issue
- Suppress subdirectory from WordPress Multisite primary URL
- WordPress mutisite migration
- How to disable the default WordPress redirect to non-www URLs?
- Multisite on localhost using xampp
- Error uploading files bigger than 58 MB
- Multisite Create Site not working
- MULTISITE SUB-DOMAIN JUST SHOWS INDEX OF -> CGI-BIN INSTEAD OF SHOWING SITE
- Multisite Sub domains not working
- Update WP install to WP network & it broke the DB connection
- Getting file errors in a WordPress Multisite ADMIN
- No input file specified after enabling multi site
- Multisite subdirectory blogs missing slash
- How to hide or remove unwanted widgets on Multisite installation?
- Multisite htaccess on localhost with WP as an SVN external?
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- WordPress Multisite – Multiple subfolders for blogs
- Hide a theme on list of themes in wp-admin without editing core files
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- Multisite wordpress and subdomain URL collisions
- Error 101 after upgrading WordPress
- Basically the opposite MultiSite URL question that most people ask
- Multisite wp-admin redirect loop
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Domain redirect in WordPress multisite
- Copy posts from one blog to another in multisite environment
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Manipulate list of themes in wp-admin
- Why wordpress multisite redirect to wp-signup if site exists?
- WordPress multisite htaccess
- Creating a Post form outside of the Admin
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- how do I configure nginx for wordpress multisite, it occurs ERR_TOO_MANY_REDIRECTS
- How to set Active plugins as the default screen?
- Members area with externally-managed htaccess / htpasswd authentication?
- Why can’t I delete original user in multisite? Options for manual removal
- Multisite network admin – URL / redirect error
- multisite custom directory
- Super admin access to a forgotten WP instance?
- Create rewriterules for different domains in htaccess file with WP multisite
- WordPress multisite in subdirectory, not root, and remove base folder from url
- Issue with htaccess redirection in WP Multisite
- Multisite setup help – plain domain/subsite always redirects to domain with subdir multisite
- Iframe being removed only for some users when publishing a page
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- Wrong Redirect/Rewrite Rules?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- URL without www redirect directly with submission page – Multiwordpress install
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Redirect old uploads after moving to multisite
- WordPress sub-domain multisite 505 error
- Redirect to localhost after installing Multisite on server
- 2 website 1 database… Local to online
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- Multisite install w/ Sub domains on a subdomain
- Multisite Subdomain Redirect Mask
- Moving wp-admin folder to a different host in a multisite environment
- Help with multisite redirect issues using Cherokee OR solid nginx config?
- Custom port problem with local MU installation
- Cannot use Network Admin (Dashboard) on Multi-site after 301 www redirect
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- How to Deny Access to No Referrer Requests on Multiste with Mapped domains
- Is There A Plugin to Create WP Multisite Installs programatically
- Can’t log in to wp-admin after setting up Multisite
- How to modify wp_config file for set up subdirectory?
- 404 not working on main site on multisite
- Changing from localhost:8888 to localhost
- Certain lines added to our wp-config.php file are being removed, every day
- WordPress Multisite and how to apply sef urls only to specific sites
- How many .htaccess files should a WordPress multisite (subdirectory set up) have?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Rewriting request to another site
- Multisite wp-admin redirecting to main wp-admin using NGINX
- local wordpress multisite not working on AWS development server “error establishing database connection”
- WP Multi Site – configure Sub domain pointing to parent sub directory
- trying to install a wordpress multisite in a subfolder and have custom subsite urls
- Multisite htaccess with domain rewrites
- WordPress Multisite: Login to all subsites at once
- Working locally with remote DB not working with multisite
- Error establishing a database connection – after updating DNS
- Resource 404 error on multisite subdirectory install
- How To Change the URL of a WordPress Multisite
- Multisite, different domains, optional subdirectory, and htaccess
- WP Multisite .htaccess interferes with cgi-bin
- Admin user getting redirected to /wp-admin/user
- Redirect extra url to Multisite in folder
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- Pick your brain on wp-config.php if statement for multisite
- Permalinks in Multisite not working
- Multisite website configure Domain issue
- External rewrite rules missing in htaccess – Multisite
- 404 error in dashboard of subdomain of multisite