1. Obtain an SSL certificate and install on your server.
(This is an great article about how to change to SSL.)
2. Type the new URL https://yoursitename.com into your browser to see if the green padlock appears. (If it does not you probably have mixed content. You can go to https://www.whynopadlock.com for more information and type in your domain name with the https in front of it. You will see what to fix. To fix the mix content easily you can use a plugin called Really Simple SSL. )
3. Once SSL is active and you see the green padlock then change the URLs on the Settings->General page to https from http.
(You will have to login after this. After logging in update your permalinks.)
4. Edit wp-config. Add the following code right above the Happy Blogging line:
define('FORCE_SSL_ADMIN', true);
(This will force all admin and login sessions to SSL.)
5. Set up 301 redirect in .htaccess file. Add the following code right above the # BEGIN WordPress line.
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yoursite.com/$1 [R=301,L]
6. Add new site URL in Google Search Console.
(Here is the Google page with the FAQS on http to https migration.)
In Search Console press the “Add a Property Button” and add a completely new property with the new URL.
7. Add a sitemap to Search Console for your updated https url. I use Yoast for this.
To connect Google Search Console to the Yoast SEO plugin, all you have to do is navigate to this page in WordPress: SEO › Search Console. Click the Button that says “Reauthenticate”. Now click the button that says “Get Google Authorization Code and follow the instructions to allow Yoast access to your Search Console Account. Then copy the authorization code into the correct field. Next you need to change the profile to the new one you just created in step 5. Click “Save Profile.”
8. Change 3 settings in Google Analytics:
On the site property page click on the Admin Gear Icon to go to the Admin Page.
On the Admin page change the url in the “Property Settings” and the “View Settings”. Also under “Property Settings” click the “Adjust Search Console” button to change the search console to the new https url you set up in step #5. Here is an article about changing the settings in GA.
UPDATES:
May 2, 2019
March 14, 2019 (Pi Day!)
Leave a Reply