I am looking for a miracle. I highly doubt there's a way to do this but just thought I'd ask:
I've been managing a multisite install on an old outdated server with old outdated pieces. We just spent up a new one with all new software to start anew. When you read the rest of this, I'm sure you'll have many questions as to what happen. Just know that it's a long story and I'm not interested in fleshing our details as to why I did certain things.
So I installed a fresh new WP installation and those who are on my multisite are creating a new site on the new install, exporting their information and importing to the new server. As you would expect, there are tons of broken links because the directory setup has changed. These broken links are on pages and posts. So, for instance, an old link file (or image) would be
www.example.com/files/2016/5/document.pdf
If I were to update this manually to make it work, I'd change it to
www.example.com/wp-content/uploads/sites/#/2016/5/document.pdf
where "#" is their site id. So to not have to do each link manually, is there auto-magical way to do this?