Before starting your subsite launch, be sure that you have read through and completed the steps outlined in Prepare for launch.
To complete the steps below, ensure that:
Subsites on a multisite cannot be self-launched until the root site (site ID 1) is launched. Contact your Launch TAM to launch your root site prior to any subsite launches.
1. Change the subsite URL
- Log in to the root site of the multisite.
- Hover over the “My Sites” label in the upper left hand corner of the WordPress Admin dashboard to access the flyout menu and select:
My Sites > Network Admin > Sites
- On the “Sites” page of your multisite Network Admin, hover over the subsite you plan to launch and click “Edit.“
- Select the “Info” tab.
- Update the Site Address (URL) to the final production URL, which is the domain that was mapped in the Prepare for launch steps.
- Click “Save Changes.”
Updating the Site Address (URL) will also update the
siteurl values, as well as the entry in
search-replace from current URL to production URL
search-replace operation will update the URLs (including content and media URLs) that exist in the site’s database from the VIP convenience domain to the mapped production domain. Running the
search-replace command with the
--dry-run flag will report the qualifying changes without altering the database.
vip @mysite.production -- wp search-replace mysite.go-vip.net/subsite www.mysite.com --all-tables-with-prefix --report-changed-only --dry-run --url=www.mysite.com
The above command performs a targeted
search-replace within the subsite tables corresponding to the URL specified (to the value that was updated in the previous step). Verify that the output shows only the tables prefixed with the correct site ID, for example
If you wish to perform a
search-replace across all tables of the multisite, adjust the command as follows:
vip @mysite.production -- wp search-replace mysite.go-vip.net/subsite www.mysite.com --all-tables --report-changed-only --dry-run
Depending on the size of the database, a
search-replace across the entire database may take a long time to complete and add extra load. Contact VIP support if you need to run a search-replace across the entire database and have further questions.
3. Run final
Search-replace from current URL to production URL by removing the dry run argument:
vip @mysite.production -- wp search-replace mysite.go-vip.net/subsite mysite.com --all-tables-with-prefix --report-changed-only --url=www.mysite.com
4. Flush object cache
vip @mysite.production -- wp cache flush --url=www.mysite.com
5. Complete your launch
Finish your subsite launch by following the detailed completing a site launch guide.