multisite image upload path problem
-
As you know there are a lot of image upload topics like this one, but I could just not find any topic that could help me as I have a slightly different problem.
I have a WordPress 4.2.2 running with 45+ sites. We just upgraded from 3.5 to 4.2.2 which was a great deal. Problem is that the media-uploader is now broken.
I’m working with sub-directories
The media upload now only works on the main site after I changed the upload path via
Network > Sites > Settings
towp-content/blogs.dir/1/files
.When I go to a sub-site to upload a file it gives me this url:
https://santexo.acsrackserver2.nl/bouwbedrijfpostma/files/2015/05/media_xll_1105222.jpg which wordpress processes to:
https://santexo.acsrackserver2.nl/wp-includes/ms-files.php?file=2015/05/media_xll_1105222.jpg which doesn’t work.When I put the blogname into the url like this:https://santexo.acsrackserver2.nl/bouwbedrijfpostma/wp-includes/ms-files.php?file=2015/05/media_xll_1105222.jpg it does work.
Here is my .htaccess (i copied it from the old site)
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [R=301,L] RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-content/uploads/$2 [R=301,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).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule ^snelstart/(.*\.xml) snelstart/orders.php [NC,L] # Handle product requests RewriteRule . index.php [L] </IfModule>
I have been searching all over the net, but I just can’t find any topic that has a solution..
Any one have an idea what’s wrong?
- The topic ‘multisite image upload path problem’ is closed to new replies.