← All recipes

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.

Run it across a fleet

Open the console in CaptainCore Manager, pick the target sites, choose this recipe from the Cookbook picker and press run. The CLI streams each site's output back to the dock.

About the console →