Menu

What I do with a client's WordPress media library when I move them to Astro
📰

What I do with a client's WordPress media library when I move them to Astro

DEV Community: astro·Linc·9 days ago
#lkA6t7U8
#devtoastro#devto#dev#uploads#article
Reading 0:00
15s threshold

Every WordPress to Astro move I do has the same quiet trap. The pages get rebuilt, the redirects are mapped, DNS is sorted, and then a month later the old host gets cancelled and half the images on the new site break. Why? Because they were still being loaded from oldsite.com/wp-content/uploads/... .

The media library is the part people forget. Here is how I handle it now.

1. Get the originals, not the thumbnails

WordPress makes 5 to 10 resized copies of every upload ( photo-300x200.jpg , photo-1024x683.jpg , etc). If you scrape the live site you mostly get those. You want the originals.

Easiest ways:

SFTP or the host's file manager: zip up wp-content/uploads and download it.

No server access? Tools > Export gives you a WXR file with every attachment URL.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.