CyberPanel Community

Button to enable automatic "https"-redirection

mo
moneke #1

Hi,

with this post I want to suggest an button, that enables automatic https redirection in the Rewrite Rules. The button should be placed at the SSL settings of an individual website.

I think it must be relativly easy to implement and it improves the user experience. For now I have to add something like this in the Rewrite Rules, but it is not convenient for newbies:

rewriteCond %{HTTPS} !on
rewriteCond %{HTTP:X-Forwarded-Proto} !https
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

Thanks in advance and kind regards!

3 replies
Cy
CyberPanel #2

Hello

I think we can probably add a dropdown on the Rewrite Box rather than a complete entry on the interface.

mo
moneke #3

Hi,

I think an implementation like this would be nicer and much easier for the users. See edited Screenshot in the link:

Cy
CyberPanel #4

@moneke

I am thinking of giving a dropbox directly on the rewrite rules box.

Sign in to reply