Apply HTTPS URLs

Changes HTTP references to HTTPS for a certain domain name.

domain=my-domain-please-change-me.tld

echo "Search and replace http://$domain to https://$domain"
wp search-replace http://$domain https://$domain --all-tables --skip-plugins --skip-themes --report-changed-only

echo "Search and replace http:\/\/$domain to https:\/\/$domain"
wp search-replace "http:\/\/$domain" "https:\/\/$domain" --all-tables --skip-plugins --skip-themes --report-changed-only

wp cache flush

Replace my-domain-please-change-me.tld with domain you wish to update URLs.