I think that you’re saying that you have moved your “uploads” directory up a level such that it now exists within your installation root, alongside /wp-includes
, wp-config.php
, etc.?
If so, you likely need to update the rewrite rules in your webserver configuration. By default, a multisite .htaccess
configuration has a rule like
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
This says “if the URL path begins with /somesite/wp-content/whatever
then serve the file located at {ABSPATH}/wp-content/whatever
” (and the same for wp-admin
and wp-includes
).
Because uploads
is not factored into this or some other rule, no attempt is made to resolve the path to a file, and instead WordPress will end up processing the request as though that path is a permalink.
Add another rule above or below that line in order to account for your new location:
RewriteRule ^[_0-9a-zA-Z-]+/(uploads.*) $1 [L]
Related Posts:
- Specific upload folder for PDFs in custom Post type in WP multisite
- Get upload URL by blog ID in multisite
- Multisite stuck at 1MB for max file size
- Which asset URLs are acceptable in a “vanilla” MU install?
- Can upload doc and pdf but not ppt – not permitted for security reasons
- Listing of all uploaded files in network sites
- Upload path/URL weirdness for the main blog of a multisite/network setup
- Turn off ms-files.php after network setup
- Organize uploaded media files
- How can I have network sites not use year/month folders by default?
- How to upload images manually to wordpress?
- Sharding BLOGUPLOADDIR
- Advanced Custom Fields Multisite Upload/Imagery Issue [closed]
- How to make WordPress use new Upload Path settings in Multisite Setup
- Hook filter to change wp_upload_dir() path in multisite
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- Shared upload folder in wordpress multisite
- Protect Uploads in Multisite
- .epub file blocked despite ALLOW_UNFILTERED_UPLOADS set to true
- How to get max upload size and accepted file types on multisite?
- Force Uploads Use Yearmonth to off (0) for all existing sites in Multisites
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- Images uploading to wrong directory after changing to multisite
- Media library not loading after switching the main site of multisite
- How to stop unlink images when remove a site or user
- Multisite media library uploads broken images
- Upload images from one site to another in Multisite
- Image problem – Multisite image upload broken
- Allow Author on Site A capability to upload files on Site B in Multi Site
- Upload file type not permitted even if explicitly registered as upload_filetypes in the db (multisite)
- Where does multisite store image uploads?
- Error uploading files bigger than 58 MB
- WP doesn’t remove uploads from folder when removed from “Media Library”?
- Problem uploading images
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
- Multisite – Images often getting uploaded to the wrong month directory
- Merge Multisites with Shared Network Media Library
- Copying media from multisite subsites to main website
- Show media-frame-menu on custom Media Frame
- How to protect specific uploaded files from being accessed by non-logged-in users in WP-multisite
- Multisite sub-directories IIS 7.5 change media/uploads location
- Make uploads live outside of the WP folder
- Where to set individual blog quotas?
- Save uploads directly in the uploads folder (on a multisite)
- Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)
- Automatically Insert Into Post when uploading Media
- Can I use the same Folder name as a Multisite Blog?
- Hiding media uploaded by other users in wordpress multisite?
- Multisite missing tmp folder error while uploading
- Multisite subdirecty added inside URL to uploaded files
- How To Upload Existing WordPress Site To WordPress Multisite Using SSH
- Remove multisite part from wordpress multisite upload directory
- How to set upload path after renaming uploads folder in Multisite?
- Shared upload folder in wordpress multisite with custom sub site domain pictures URL:s
- WordPress Multisite subdomains and sharing the same upload folder
- New wordpress uploads are broken
- Primary site file uploads failing, subdirectory subsites upload fine
- Multi site and media uploader
- MP4 upload ok, but HTTP500 if I update the file (multisite)
- Enabling custom file and mime types in multisite
- Unable to upload files greater than 1MB in size in Multisite network?
- How can I get all attachments by a user on a WP multisite network?
- How to setup LDAP authentication with WP multisite
- Set default avatar network-wide
- latest 5 posts using switch_to_blog loop
- restore_current_blog() vs. multiple switch_to_blog() followed by removing $GLOBALS[‘_wp_switched_stack’]
- Sub-subdomain getting redirected to main domain
- WordPress (+WPMU) Import/Export ALL settings?
- How to work on a live WPMS blog when domain is unresolved? [closed]
- How do you load WordPress from an external script when using MultiSite? [duplicate]
- Hook up MU site creation
- ReWriteRules and WordPress Multi-Sites with Sub Directories
- How can i redirect my Blog to a Subdomain?
- WordPress Multisite Redirection Issue
- Multisite user roles – capabilities not working
- WordPress: how to change URL for individual MultiSites?
- Changing the language for each individual site in wordpress multisite
- how to have __() translating in languages different from admin?
- Set a default page template to load for multi-site
- Delete user from multisite when removed from subsite
- how to control display switch_to_blog( $subsite->blog_id ); $tags = wp_tag_cloud
- Which Multi-language option for WordPress is best from an SEO and Woocommerce perspective?
- Multisite 404 page
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- the_content not working on one of two Multisite sites
- filter posts without images or featured image
- Tracing non-uniform slowdown on a multisite install with multiple domains
- After switch domain, some parts of my site still point to my old domain
- Hook into ‘admin_url’ but only on Mysites admin bar menu
- Add file at the root of mapped domain in multisite
- WordPress multisite REST API connection refused with android – redirects to home page when using IP address in Postman
- How to connect existing subdomains to new wordpress multisite?
- WordPress Multisite with cPanel Addon Domains and SSL
- Multisite “Skip Confirmation Email” Log Out Problem
- Page Template Dropdown – Missing In WordPress MultiSite
- How can I display all Multisite blogs where this user is administrator?
- Multisite and users being listed on network administration dashboard and not main site dashboard
- How to remove index.php from a tag or archive page URL in the root blog?
- Multisite, but wp_kses_allowed_html only for one subsite?