Multisite Server Move – Images broken
-
Yes another “Multisite Server Move Stole My Images” post. Sorry if the answer to my problem is buried here somewhere, I’ve spent the day going through posts and trying several things with no success.
Recently moved my server – same host, same host DNS, same domains, new IP, cheaper price (VPS).
Overall things went well but my WP MU / Network sites have a problem – no images. The sites themselves seem to be working fine.
Main MU install is a-wp.com.au, my main problem domain I’m trying to sort out is ausclicks.com.au
When I try to upload an image, all I get is a little blue box with a ? in it.
Example:
https://ausclicks.com.au/files/2012/05/atwings-white100.gif leaves a totally blank page.
https://ausclicks.com.au/uploads/2012/05/atwings-white100.gif gives 404 error..htaccess file:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [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 . index.php [L] # END WordPress
Note:
RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
was added after a suggestion on https://codex.www.ads-software.com/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite I’ve tried it with and without that line – no difference. Is it in the correct place?Going a bit crazy trying to sort out what seems a tiny problem. To be honest it’s very frustrating to see so many people have the issue and WordPress not fixing it.
At the point of considering setting up a new WP MU and starting over but not sure best way to do this re: export / import and not have the same problems. Plus I would like to spend the day doing something useful and not just rehashing old ground.
Appreciate any help.
Michael
- The topic ‘Multisite Server Move – Images broken’ is closed to new replies.