How to trasfer a big (ish) WP site from http to htps?

Posted June 14, 2018 1.3k views
WordPressSecurityUbuntu 16.04

I have a rather complicated issue (for me at least with my little knowledge) which has been holding me back from doing this.

I have an already established site with almost 1000 posts with decent traffic. I set up everything through ServerPilot.

I also used CloudFlare and have their Flexible SSL on as well.

How do I go about transferring to https? What are the steps involved to minimize any traffic loss and downtime?

I would appreciate any help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

With Cloudflare this should already be setup for you as it acts somewhat as a reverse proxy to your WordPress website.

If you would like to update all your internal URLs, if you have access to the command line and wp-cli you could use a command like : wp search-replace 'http:' 'https:'

This will update all URLs from http to https - the downfall here is that if the URL is an external link or an image reference that currently does not support https then the link will be broken - Proceed with caution.