HTTP to HTTPS automatic with Let's Encryptâ„¢ SSL

portuguesedude

Well-known member
Registered
Joined
Nov 1, 2017
Messages
139
Points
18
hello

so i have issued SSL certificate from my cpanel account.
Let's Encryptâ„¢ SSL is issued and active.
How to automatically redirect HTTP to HTTPS url ?

Only way i found was to edit index.html to redirect to htpps
another way please?

thanks for sharing !!!
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
create a .htaccess in public_html

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


Then ensure all links to other pages are https or you will need to create a .htaccess in each directory with the redirect rule.
 

24x7serverman

Well-known member
Hosting Provider
Registered
Joined
Jul 25, 2017
Messages
651
Points
28
That's correct! Basic for setting up redirection from http to https is, there should be SSL certificate installed on your service for with you would like to add the redirection. Once you will install the SSL certificate then you should replace every instance of http with https in your code, script, image paths etc.

Once all this is setup then you can add the 301 type of redirection from your control panel or you can write the code of redirection in .htaccess file. Some domain registrars do provide option to add the redirection.

Hope this will help you.
 

neckom

Well-known member
Hosting Provider
Registered
Joined
Mar 7, 2017
Messages
88
Points
0
hi,

you can try letsencrypt--- automated, free and open certificate authority brought to you by the non-profit Internet Security Research Group.


The objective of Let's Encrypt and the ACME protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server.
 
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top