Migrating Media from Shifter Media CDN to WordPress Local Storage

Procedure Overview: Install a plugin to export media, then deactivate Shifter Media CDN. Restart WordPress and install several additional plugins to upload files, replace paths, and regenerate media thumbnails. Generate artifacts.

Full Procedure

  1. Launch WordPress and install the Export Media Library plugin to download your media.
  • Install the Export Media Library plugin.
  • Then activate it.
  1. Export the media.
  • Click [Media] → [Export].
  1. Download the media files.
  • Click the [Download Zip] button and verify that all media has been exported.
  1. Stop WordPress and disable Media CDN.
  • Return to the Shifter dashboard, stop WordPress, and then disable Media CDN.
  1. Click [Start WordPress] to start WordPress (it will start without Media CDN).
  1. Install and activate the File Manager plugin.
  1. Use the File Manager plugin to upload media to wp-content/uploads/.
  1. Manually search and replace the media paths, or use a plugin.
  • Replace the media paths in posts or pages from https://cdn.getshifter.co/{site-id}/ to https://{YOUR-DOMAINNAME}/ or simply /.
  • Search and Replace Plugins:
    * Search Regex
    * Search Replace
  1. Regenerate thumbnails.
  • Install a thumbnail regeneration plugin and regenerate the thumbnails for your media.
  • Thumbnail Regeneration Plugins:
    * Regenerate Thumbnail Advanced
    * Regenerate Thumbnails
  1. Preview:
    • Preview to ensure all media has been uploaded and is displayed.
  2. Build and Deploy:
    • Build the artifact. That’s it!