Have you worked on a WordPress site that is not yet live, and need to move that site to a new permanent domain name? Or need to migrate your site’s domain name? It should be straightfoward to just change the Site Address in your WordPress settings, but take a closer look and you will notice all the img urls and links in all your content and options still point to the old Site Address.
This plugin helps migrate those urls when you change the Site Address, it will:
- Update matching links in the content of all posts and pages (including custom types)
- Update matching links in post and page option fields (supports serialized data)
- Update matching links in the content of all comments
- Update matching links in post category and tag descriptions
- Update matching links in user descriptions
- Update matching links in user website fields
- Update matching links in WordPress and widget option fields (supports serialized data)
To bypass any of the above, simply comment out the appropriate line in the PHP file that calls the sf_mgr_update_table function.
This plugin will work even if the protocol of the link doesn’t match the old Site Address (eg. the link uses “https://” instead of “http://”, or if it is protocol-relative “//”). When the protocol doesn’t match the old Site Address, the protocol for the link will be kept (ie. it will not update to the protocol of the new Site Address).
Its always a good idea to backup your MySQL database before making major changes like your Site Address. This plugin has not been tested for Multi-Site installs, use at your own risk!
Get this plugin at the WordPress plugin repository: