4 like 0 dislike
145 views
Please i have a website supporting both the HTTP and HTTPS port, i would like to automatically redirects all my traffic to the HTTPS port so as to make all my users activities more secure.

Thanks.
· | 145 views

Please log in or register to opinion this Issue.

2 Opinions

1 like 0 dislike
If you have a secure certificate (SSL) on your website, you can automatically redirect your website visitors to the secured (HTTPS) version to make sure their information is fully protected.

However, the redirection method depends on the type of hosting you have.
·
1 like 0 dislike
Linux & cPanel:
Linux-based hosts use .htaccess files to handle redirection.Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
·
If you have an existing .htaccess file, do not duplicate "RewriteEngine On".
Make sure the lines beginning RewriteCond and RewriteRule immediately follow the already-existing RewriteEngine On.
Note: you can manage (create or edit) your .htaccess file from Control Panel's "File Manager" tab.
360 Issues
641 opinions
156 comments
1,341 users