V
V
VANY2017-05-14 19:58:24
Apache HTTP Server
VANY, 2017-05-14 19:58:24

How to fix links after Multisite migration?

Hello.
There is a multisite-Wordpress on Apache + Nginx server.
Moved this site to a new Apache + Nginx server - links to images broke (everything in uploads).
The file structure is uploads/sites/{blog_id}/
On the old server, the links are correctly specified, from /sites/{blog_id}/, on the new one it's just /uploads/, of course there is nothing there.
htaccess copied from the old site, did not help. How can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Site Developer, 2017-05-14
@secsite

First, return the original database, then, without going to the admin panel with help. this script to fix the paths. Paths don't start with /sites/, but with www/user/public_htmlor something like that.
Of course, you can change it even now - the paths to the pictures will most likely be corrected. But it's better, as I said above, besides this, a lot more broke. Not everything can be seen right away. Might pop up in months.
In general, it is better to transfer sites with help of plugins for migration. True, for a multisite it may already be not free (the duplicator has a paid feature, but I was not interested in others - the script, if any)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question