How to Redirect HTTP to HTTPS in CyberPanel

by

Hey there! Some links on this page may be affiliate links which means that, if you choose to make a purchase, I may earn a small commission at no extra cost to you. I greatly appreciate your support!

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.


Meet Tony

With a strong software engineering background, Tony is determined to help as many people as possible start their online busines. Discover why Tony quit his hedge fund job to pursue this mission. You can send Tony a message here.

7 thoughts on “How to Redirect HTTP to HTTPS in CyberPanel”

  1. 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.

    Reply
  2. 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.

    Reply
  3. 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

    Reply

Leave a Comment