How to force SSL | After installing SSL, your website enables you to surf with HTTP or HTTPS. But, by default, when someone visits your website it just redirects HTTP, not HTTPS. It will look terrible.
So, how you can fix it to force HTTPS on your website to look your website more secure and confident.
Here simple tutorial you can follow.
How to Force SSL?
Before we started, here I would like to tell you this tutorial only working on the Apache server. Not the Nginx server. Not sure your server running Apache or Nginx? Look tutorial on how to know Apache or Nginx run on the server.
First of all, please login to your cPanel.
login to cPanel, go to your root installation file and then find the file .htaccess. If you can’t locate it, maybe your cPanel hides it.After
To unhide, go to setting and tick to “Show Hidden Files (dotfiles)” then click save. If you still not find it, make sure to create a new one. No problem.
When you have .htaccess file, make sure it on editor mode because we will add some code here.
To turn on it editor mode just right click on .htaccess file such as image below.
Note: “Setting” I have mentioned above (step 2) is located at the top right on your cPanel. If you still have a problem just drop a comment below.
Copy the code below, and paste into it. When done, click the button Save Change to save what you have edited just now.
Make sure RewriteEngine On do not repeat write on .htaccess file. Keep just one only.
Now, you have setting SSL force redirect to your domain.
If you still have problem about redirection to SSL, please drop your comment below.
I will reply it as soon as possible.
In this tutorial, I have shown you how to force SSL on your website. So, when someone visit to your website, it will be redirect to secure page HTTPS. Just I told you before, this tutorial only working if your server using Apache.
163 total views, 4 views today
If you like this article, then please FOLLOW to our Google+ and Facebook. Do not forget to check our services page for empowering your WordPress. If you find this post outdated or error, please contact us to fix it.