• Well, after being shutdown by our webhost for too much traffic, we had no choice to move to another upgraded and reliable server.

    Moved all of the static files over associated with the WordPress install, themes, etc. I moved over the database and set up the domains via ssh to ‘map’ them to their specified locations. I had to use ssh because we have plesk from Media Temple and couldn’t do the normal ‘parked’ domain thing.

    I’m getting there but I have a huge issue on our sites. None of the attached images and gallery photos are showing up. It’s like they are being looked for somewhere else, or expecting them to be in a folder. I moved over all of the files in their respective places but I cannot see any of the images that were seen before the move.

    Here’s a great example of a gallery where the photos are not showing up. This is happening all over my multi-site.

    https://grchristianeagles.com/?p=820

    Thanks for any direction on this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The path to each uploaded image is stored in the database, and, as a result of your move, these are no longer valid. Here’s an example:
    https://grchristianeagles.com/files/2010/09/cuba-100×100.jpg

    You need to find out why that URL doesn’t work, and either fix the problem, or – if the files have moved – change the database entries to point to the new location of the uploaded files.

    See https://www.kristarella.com/2009/05/how-to-move-wordpressmu/ for more on this.

    Did you move over the htaccess file too? That does the image rewrites so it can find the images.

    Thread Starter awolverine

    (@awolverine)

    This is what was in my old htaccess file

    AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
    AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    I added this to the new htaccess file but it didn’t seem to do the trick.

    Thread Starter awolverine

    (@awolverine)

    It just seems like since I moved everything over like for like, they should be like for like over to the new host. The thing that I’m worried about is that something is corrupted and with so many variables, it’s scary ??

    Like I said above, the image rewrites are all run through this file.

    time for a support ticket with your host.

    Thread Starter awolverine

    (@awolverine)

    Resolved! I actually didn’t have

    RewriteEngine On
    RewriteBase /

    pasted in the new .htaccess file.

    After two days, our multi-site is moved to a new host and back to normal, thank goodness ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images Don't Show Up After Host Move’ is closed to new replies.