Skip to main content
added 280 characters in body
Source Link

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 which brings me. 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 my questionupdate 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. IsSo to not have to do each link manually, is there anyauto-magical way to mass update all these links to put them on the right file pathdo this?

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 which brings me to my question. Is there any way to mass update all these links to put them on the right file path?

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?

Source Link

Mass Update Broken Links

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 which brings me to my question. Is there any way to mass update all these links to put them on the right file path?