How to force SSL on your website

How to force SSL on your website

Letting your users use a non secure version of your web address is a security issue. In this post, i am going to show you 3 ways to force SSL on your site. Note: You need a valid SSL before implementing this. You can buy one here. If you are one of our Web Hosting customers, there is no need to buy one since we have Auto SSl- free with every web hosting account. An SSL Certificate is so important. HTTPS stands for Hypertext Transfer Protocol Secure while SSL stands for Secure Socket Layers. In short, HTTPS allows visitor’s browser to establish a secure connection with your hosting server (and therefore, your site). The HTTPS protocol is secured via SSL.

 

1: .htaccess Method

Access the files of your site and locate the .htaccess file. Open the file and add the following code:

 

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

Done. You are good to go.

 

2: cPanel Redirects

 

To force ssl using cPanel redirects, simply access you cPanel control panel and locate the redirects section. Set type to permanent 301 and next to ‘redirects to’, enter your website’s web address using the SSL version eg: https://yousite.com. I recommend having a redirect without ‘www’. Also ensure that wildcard is selected. Click add and congrats!

 

#3: Really Simple SSL WordPress plugin

 

Probably the easiest way for WordPress users. All you need to do is install and activate the plugin : https://wordpress.org/plugins/really-simple-ssl/ and it will do the rest.

 

T.Titus

Recent Posts

BREAKING: ZIMSEC 2024 Grade 7 Results Released – Check Them Out Now

2024 ZIMSEC Grade 7 Results Now Out The Zimbabwe School Examinations Council (ZIMSEC) has officially…

4 days ago

Free Community WIFI

We’re bringing free WiFi to different parts of Zimbabwe to help you access eduzim.co.zw for…

5 days ago

Sadza Recipe

Sadza is a simple, hearty dish that forms the backbone of many Zimbabwean meals. It's…

4 months ago

Caesar Salad

Caesar Salad A classic Caesar salad is a simple yet flavorful dish with crisp romaine…

4 months ago

Primary Level Past Exam Papers

Zimsec and Cambridge past exam papers free download pdfs on eduzim

6 months ago

A Level Past Exam Papers

Zimsec and Cambridge past exam papers free download pdfs on eduzim

6 months ago