How To Add Https Protection To Your Website

First off, before continuing any part of this tutorial make sure your domain/hosting provider plan came with an HTTPS certificate included. If it didn’t chances are that you will have to buy one otherwise any of the steps below won’t work.

1) Adding Https to your website

1.1) Logging on your Cpanel: In order to do this you will have to log on your Cpanel, which you can do so by typing www (nameofyourwebsite).com/cpanel

After logging into your Cpanel you will be met with a screen similar to this one

1.2) Now, we will be going to click on the File Manager tool located inside the Files category of your Cpanel

1.3) After clicking on it you will be prompted with a typical File Manager tool for a Cpanel

1.4) After doing so locate the settings options, which can probably be found on the top right of the black bar.

1.5) After clicking on settings a small menu like the one below will pop up for you to change its configurations & settings.

1.6) Now, we will have to change its setting to show hidden files by clicking with the left button of our mouse into its marker inside this menu. This will allow us to see dotfiles( hidden files whose filename starts with a dot).

1.7) Now, close this menu and go to the public HTML folder. You will be met with a folder, that looks similar to the one below


1.8) If you did everything correctly whenever you go inside your public HTML, like the image below you will be able to see a few dotfiles.

1.85)For now we will be changing a few configurations inside a dot file called .htaccess click on it with your right mouse button and download it or click on the edit option.

1.9)Whether you decided to edit with the File Manager built-in editor or download it into your pc and use the notepad to modify it you will need to type the following settings from the image below


In case the image is too blurred for you to read the settings are:

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://(nameofyourwebsiteinhere).com/$1 [R,L]

1.91) Now, save it and upload it back to your Cpanel in case you downloaded to your pc and used notepad instead of the File Manager Text Editor.

2) And that’s all folks, voila! Done! If you did everything correctly next time you go to www.(nameofyourwebsite).com it will redirect you to the https version of it.

In the next tutorial, I will be teaching you how to add https protection to WordPress-based websites.

Warning: Depending on your host provider and plan it may take from a few minutes to several hours before the redirection is working properly.

0 0 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
1 year ago

[…] simple, but powerful plugins if you care about bringing safety to your website and visitors. With a very intuitive and easy to use interface Really Simple SSL, will put your […]

1 year ago

[…] In our last tutorial, I taught you how to add https protection to a normal website. However, in case you want to add https redirection into a website using WordPress, you will have to do some additional configurations which I will be teaching you how to do so, below. […]

1 year ago

[…] your web app on the computer you’re developing it on may see good enough until you need to test things […]

Would love your thoughts, please comment.x