How to set 301 or 302 redirects for your domain on CyberPanel?

Undoubtedly, it’s pretty popular and easy to redirect HTTP requests to HTTPS for a website. But to beginners on CyberPanel, it’s not as plain as a day. So, let’s just get to the point.

1. Set up a website. We are not gonna talk about it, ’cause it’s too easy.

2. Get into the manage page of a website in CyberPanel’s control panel like this:

Find the <Manage> button for a website in CyberPanel’s control panel

3. Find the <Rewrite Rules> button in the CONFIGURATIONS group like this:

Find the <Rewrite Rules> button for a website in CyberPanel’s control panel

4. Select <Force HTTP -> HTTPS> from the droplist and save it like this:

Select the first rule and save your change

5. Don’t forget to restart your OpenLiteSpeed server like this:

Open OpenLiteSpeed control panel from port 7080 by default
Click on the restart button on the top

TA-DA! ALL DONE!

Add a Comment

Your email address will not be published. Required fields are marked *