Wordpress multisite migratino to LEMP images not showing

January 3, 2016 476 views
LEMP WordPress Nginx CMS PHP Ubuntu

Hi there, I recently migrated my wordpress multisite install from my shared host to my cloud server with DO. Everything appears to have worked fine, with the exception of all the images on blogs other than the primary blog don't show.

for example, all images load and everything works fine. - non of the images load.

What's strange is the image path is identical to how it was on my shared host and references a file that does physically exist. Also, I can upload new files, it seems the file creates, but the image itself doesn't display, see this screenshot:

I don't think this is a htaccess issue, but I may be wrong, here is my htaccess file:

<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"

Enable Gzip

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

enable Gzip


<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding


<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

uploaded files

RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

add a trailing slash to /wp-admin

RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUESTFILENAME} -f [OR]
RewriteCond %{REQUEST
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).) $1 [L]
RewriteRule ^(.
.php)$ $1 [L]
RewriteRule . index.php [L]


Can anyone suggest why this might not be working for me?

1 comment
  • Are any errors being recorded in your ngninx log files in /var/log/nginx/?

Be the first one to answer this question.