Skip to content

Instantly share code, notes, and snippets.

@alanef
Last active November 27, 2018 21:04
Show Gist options
  • Select an option

  • Save alanef/16b394adc6d2a43c4d43986630fdeb05 to your computer and use it in GitHub Desktop.

Select an option

Save alanef/16b394adc6d2a43c4d43986630fdeb05 to your computer and use it in GitHub Desktop.
Network change
# multisite search replace
wp config set DOMAIN_CURRENT_SITE "multisite.blahnew.net"
wp search-replace "multisite.blah" "multisite.blahnew.net" --url=multisite.blah --precise
wp search-replace --network "https://multisite.blah.uk" "https://multisite.blahnew.net" --precise --all-tables
wp search-replace --network "http://multisite.blah.uk" "https://multisite.blahnew.net" --precise --all-tables
# single site
wp search-replace --all-tables --precise "http://old" "https://new"
wp search-replace --all-tables --precise "http://old" "https://new"
<VirtualHost *:80>
ProxyPreserveHost on
ProxyRequests Off
ProxyPass / http://5.134.x.y/
ProxyPassReverse / http://5.134.x.y/
<VirtualHost *:443>
ProxyPreserveHost on
ProxyRequests Off
SSLProxyEngine on
ProxyPass / https://5.134.x.y/
ProxyPassReverse / https://5.134.x.y/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment