Image library broke after switching main site of a multisite
-
Hello,
It is a subdirectory based multisite (no subdomains) and I moved one of the subsites to become the main site. I followed the instructions by Mika Epstein on this article to the letter.
Now the images of the new main site are acting strange.
On image library, image links are broken. The permalinks and file urls of images in the media library don’t work.
However, the images are still embeded inside posts pointing to their old address. /wp-content/uploads/site/2/
I might be able to use search and replace to strip the /site/2/ part from the image urls. But how could I move several years of images from wp-content/uploads/site/2/ to wp-content/uploads/ folder?
Note:
* I had disabled all plugins with potential multisite functionality during the switch to avoid conflicts.
* I never changed anything on the network settings upload url path and the like. (Except the changes I made today as per Mika’s instructions). Those spaces are still blank.Thanks in advance.
- The topic ‘Image library broke after switching main site of a multisite’ is closed to new replies.