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.
8 Responses
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!
Mate, you are a life savior, keep the good work, and thumps up.
Definitely, you are my all-time reference, you made me restore hope in WordPress.
Hello, thank you very much, how can I have two or more domains in this control panel? Thank you very much what I have to do
From your CyberPanel dashboard, on the left side go to Websites > Create Website.
How to SSL Renew on CyberPanel
This should help you https://tonyteaches.tech/lets-encrypt-renew-cron/
Hey Tony! I’m brazilian too, and I thought your tip was great. I was wondering if I had done something wrong until you explained it to me. Just to update the content, now I can click Rewrite rules and select the force to https template. Thank you very much…