This happens often with client websites. When you merge a business website and blog from separate URLs together, old links in blog posts, attachments, and pages may still be pointed at the old domain name. Although you can do a redirect on the old domain to the new one, it’s better to have everything updated to the new URL in case the client ditches ownership of the old domain in the future. But you definitely do NOT want to go through every post and change every link, so here’s what to do instead!
Velvet Blues Update URLs plugin updates:
- Links in pages, posts, and revisions
- Attachment links (for images, documents, and other media)
- URLs in custom fields and meta boxes
- URLs in excerpts
I’ve used this plugin numerous times for client sites–I love how easy it is to use, and how quick everything gets updated. It’s not just for new domains–if you move WordPress to a new directory or subdomain you’ll need to update your URLs as well.
You can download the Velvet Blue Update URLs plugin here, or just search for it from your WP admin.