In this short tutorial, you will learn how to redirect HTTP traffic to the HTTPS version of your website. This way, all of your visitors will have a secure, encrypted connection to your website.
Redirect HTTP to HTTPS
From the CyberPanel administrator dashboard for your website navigate to Configurations -> Rewrite Rules. In order to redirect HTTP to HTTPS, add the following configuration code snippet.
RewriteCond %{SERVER_PORT} ^80$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Save your changes.
From now on, all of your traffic will automatically be redirected to the HTTPS version of your website.
If you have any question, please let me know in the comments below.
Hello Tony, good morning grace and peace my dear!
I searched for it for several days on google and youtube in Portuguese and all without success, until I found your channel and a video of you talking about CyberPanel and found this article of yours, thank you very much, I saved your link in my favorites and for sure I won’t have to search anymore that’s why.
May God bless you and pour many blessings upon you.
I’m very happy to hear that Vilmar! Thank you and cheers!