To use this plugin you must first install the Go Live Update Urls plugin which may be downloaded for free here:
Once you purchase the pro version you will receive a download link for the PRO plugin. You may also download the PRO plugin anytime by going to the My Account section of this site. Upload the PRO plugin using the standard WordPress plugin installer and activate both the PRO and free plugins.
Here are some step by step instructions.
You will find an icon to right of the New URL field which has a tool-tip to let you know it is for testing. Clicking this icon will open run tests against the entered Old URL and New URL. Once the tests are complete, you will be shown a report similar to this. If any issues are found, you will be given a button to click to automatically fix the issue. There is no configuration required for this feature to work.
The following conditions prevent the “Verify this site is accessible from the New URL” from being able to reliably verify the site is accessible from the new URL and therefore will always show “Unable to verify whether or not this site is accessible from the new URL”:
- The entered Old URL and New URL are not the same as the current site URL and are not the domain of the current site.
- The site is a multi-site using sub-directories and entered URLs are specific to a site on the network instead of simply entering the old and new domains
If the new domain is not yet pointed to the site the “Verify this site is accessible from the New URL” will always show “This site is not accessible when the Old URL is replaced with the New URL” (which makes sense because the site is not accessible on the new domain if it is pointed elsewhere).
Site Address History
You will find an icon to right of the Old URL field which has a tool-tip to let you know it is for viewing your Site Address History. Clicking this icon will open a history report similar to this. This list will contain any changes made to the Site Address (URL) via your General Settings in the WordPress admin since this plugin has been activate on the site. The results will be limited to the last 10 changes in order of newest to oldest. Clicking the Use button at the right of any item will automatically fill out the Old URL and New URL with the values from that row.
This feature is fully automatic. If you have changed the Site Address (URL) via your General Settings in the WordPress admin during the past 24 hours, the Old URL and New URL will automatically be filled out for you with the values of the last change. This will only work if the plugin was active at the time of changing the Site Address, otherwise no configuration is necessary.
Suggested Procedure For Switching A Site’s Domain
- Setup both old and new domains on the server to point to the site.
- Point your host file to the server so you may see the change before the rest of the world.
- You can skip this step if you prefer to point to the new domain to the server prior to testing.
- If you DO NOT point the domain to the server prior to testing, the URL testing results will always show the site is not accessible or unable to verify whether or not the domain is accessible. (which makes sense because the site is not accessible on the new domain if it is pointed elsewhere)
- Change the WordPress Address (URL) and Site Address (URL) in the WordPress General Settings.
- Run this plugin to change the domain in WordPress.
- Verify everything is working.
- Point to the new domain to the server to make the site live on the new domain (if not done already).
When this plugin is activated, a new WP-CLI command will be available called go-live. You may use this command using standard practices such as:
Command usage may be found using the normal
wp help go-live and
wp help go-live update commands. Otherwise, basic usage is as follows.
To update the entire database simply run
wp go-live update <old url> <new url> replacing <old url> and <new url> with your site’s specific URLs such as:
You may specify particular tables or sections using the
--sections flag. If you specify either tables or sections, the command will let you know which tables were updated once complete.
Tables match what you would normally see on the Go Live setting page. For example, if you want to just update the
wp_users tables you could run the command like so:
Sections use slugs to represent what you see in the Go Live settings page. Available sections include
comments, custom, network, options, posts, terms, user. For example, if you want to just update the
posts you would could run the command like so: