Knowledgebase

How to direct your Website visitors to your site's Https version automatically.

How to redirect your website visitors to your site's https version automatically

Force HTTPS through cPanel

1. Login to your cPanel Dashboard
2. Click Domains under Domains section
3. Turn on Force HTTPS Redirect

For Wordpress websites

1. login to your WordPress Dashboard

2. Go to Settings

3. Click on General Settings

4. Add https in front of your website address in the WordPress Address (URL) and Site Address (URL) fields

5. Then click Save Changes at the bottom of the page.

If after doing this your site still shows not secure, install the plugin: Really Simple SSL and activate it, it will help clear any SSL issue on your website.

 

For Non-Wordpress sites - (Using .htaccess file)

1. Go to File Manager in Cpanel

2. Enter public_html

3. In the public_html folder, the .htaccess file may already be there. To double-check it, click Settings in the top-right corner and tick Show hidden files (dotfiles).

4. Else Create a new file with the name .htaccess

5. Edit the file and type the content below into the file

 

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

 

6. Then save.

After doing any of the above and your website still shows not secure, please visit the site below and input your website address for scan and you will get feedback on the issue:

https://www.whynopadlock.com/

Was this answer helpful?

5 Users Found This Useful