Can't force https

Hello! Like in topic, I can’t force my domains to https.
Domain with https works fine but withous https didn’t work. The domain without https will redirect to “default” webserver catalog.

CyberPanel Info:

Current Version:  2.3
Build:  4Current Commit:  8e97f4f61d350c39818e55de0c6330edb68328f5
Latest Version:  2.3
Latest Build:  5Latest Commit:  6b5a932ebe4fe43ecf831f7b27665647eefaaab2

Rewrite rules

### Rewrite Rules Added by CyberPanel Rewrite Rule Generator

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

### End CyberPanel Generated Rules.

Problem solved. Tha’t not a rewrite rules problem.

I have broken hostname configuration (hostname and postfix config same), one of domain will be the same as hostname. Big, stupid mistake
When I change everywhere hostname to everything works fine! :slight_smile:

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.