If you’ve built your WordPress site and you’ve a SSL certificate, you’ve searched and replaced all of your URLs to sit behind secure https and when you load your site you see that lovely green pad lock in the address bar. Let’s open up a private browsing window to mimic how other users would first visit your site. For us Chrome users this mean opening the infamous incognito window now let’s type in your website’s URL without the preceding http. Well unfortunately the regular unsecure http version. Without typing https:// into the browser, which let’s admit no one does, your users and costumers will be directed to the unsecure version of your site.

You can easily solved this with two way.

With Plugins: If you are extremely lazy or don’t want to mess with coding anything into anywhere than this first route is for you. All it involves is installing a plugin called Really Simple SSL from the WordPress plugin library. Activating it and push the button called Activate SSL!

That’s it you’re done. Now if we try the same trick to view our site in the private browser you see it goes directly to https and everyone is happy.

So that’s the really easy way to do it, but I’m not a fan of installing plugins if I can accomplish the same goal without it. This route will require a little more experience and higher level access. So if you don’t have access to your CPanel account or don’t know what a CPanel account is than stick with the plugin, it gets the job done.

In your CPanel account under File Manager in your public_html file you will find the .htaccess file. If you don’t see it you may have to enable the setting to view hidden files. The .htaccess file is hidden by default.

Go ahead and open the file into the editor and at the top above the other rules but below the first declaration insert the following four lines of rules. Save the file and close. And you are done.

With Code:


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.