How to enable HTTPS in WordPress
Moving WordPress to HTTPS takes an active SSL certificate, https in the site URLs, updated links in the database, a 301 redirect and a cleared cache. HTTPS encrypts the connection between visitor and site and removes the Not secure label in the browser, so switch as soon as the domain has a certificate. You do not need a plugin that forces HTTPS, and the redirect keeps traffic from old http links.
Check your site
-
Confirm the certificate is active
In cPanel open SSL/TLS Status and check that the domain shows a green lock. If there is no certificate, issue one with AutoSSL first; without it the site will load with an error.
-
Change the site URLs to https
In WordPress open Settings > General and replace http with https in both WordPress Address (URL) and Site Address (URL). After you save, WordPress sends you to the new address, and you may need to log in again.
-
Set the URLs in wp-config.php if needed
If the URL fields are greyed out, the addresses are defined in code. Open wp-config.php and put the https address into define('WP_HOME', ...) and define('WP_SITEURL', ...).
-
Update old links in the database
Posts, images and menus may still hold hard-coded http links. Replace them with the Better Search Replace plugin or WP-CLI search-replace, changing http://your-domain to https://your-domain.
-
Turn on the redirect to https
Add a 301 redirect in .htaccess so that visitors who follow old http links reach the secure version. On LiteSpeed this works without extra plugins.
-
Clear the cache
Purge the page cache in your caching plugin and in LiteSpeed Cache, and clear your browser cache. Otherwise you will keep seeing the old http version and think nothing worked.
How to verify the result
Open the site in a private window: the address should show https and a padlock with no warnings. The free SpoofLens SSL checker confirms the certificate and the chain in a few seconds.
Tip: Once the certificate is installed, do not leave the http address in Settings > General. It is the most common cause of endless redirects and a white screen.