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

June 14, 2018 126 views
Security WordPress Ubuntu 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?

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.

Have another answer? Share your knowledge.