Last active
November 27, 2018 21:04
-
-
Save alanef/16b394adc6d2a43c4d43986630fdeb05 to your computer and use it in GitHub Desktop.
Network change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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