Can I use RewriteRule (htaccess) in Cybepanel? — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Can I use RewriteRule (htaccess) in Cybepanel?

I started using Cyberpanel from this month.
No matter how hard I try to find out, there are things I can't do, so I'm asking questions elsewhere, but the response isn't good, so I'll ask again here.
The RewriteRule below doesn't work for the middle Rule only.
How do you get it to work?


### Rewrite Rules Added by CyberPanel Rewrite Rule Generator

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ / [R=301,L]

### End CyberPanel Generated Rules.
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!