• Resolved cheezitman

    (@cheezitman)


    Hello,

    Due to my new boss our sites are to be moved to a new server (yea!) and have the domain change (boo), the problem is a WordPress Mutlisite full of student ePortfolios.

    I moved the files with rsync,
    dumped and imported the database
    and ran searchreplacedb2.php to change the domain name on the site.
    lastly I modified wp-config to change the URL and modified my and the server’s host files so I can test it internally.

    The site seems to work, but all (and I mean ALL) the media links are broken. The files are there, I can edit them with FTP and the webserver has access to them, and I can upload new media, but existing links seem broken.

    Any idea how I can fix this? Images I can see in the library if I go to edit them, but I can’t see them in attachment pages etc, I just get 404 messages.

    I’m running the server on nginx with php-fpm, but the old server was using that as well.

    If nothing else where can I find where WordPress keeps the location of media files?

Viewing 1 replies (of 1 total)
  • Thread Starter cheezitman

    (@cheezitman)

    Nevermind I found that in my nginx virtualhost file I needed to set:

    location ^~ /blogs.dir {
                    internal;
                    alias /var/www/SITENAME/wp-content/blogs.dir ;
                    access_log off; log_not_found off;      expires max;
            }
Viewing 1 replies (of 1 total)
  • The topic ‘Migrating to a new Server & URL’ is closed to new replies.