...
Replace '<live-yoursite.pantheonsite.io>' with your actual Pantheon live URL, and '<yoursite.ddev.site>'
with your local DDEV URL. Note that you may sometimes need to run this command multiple times to ensure that all URLs and paths are updated correctly. 🤞also need to specifically target the wp_options table, wp_blogs, and wp_sites as well, otherwise, you may be seeing redirections from local to the live site when you attempt to browse your network sites locally. So:
Code Block |
---|
ddev wp search-replace 'live-yoursite.pantheonsite.io' 'yoursite.ddev.site' 'wp_*options' wp_blogs wp_site --network |
!! Note the * before wp_options which means the options tables for all the sites in the network.
Create/Edit WordPress User
...