• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

[SSL-Guide] https via .htaccess

Avast

👽 Chevereto Freak
This tutorial describes, how to use https (SSL) via .htaccess. (I prefer the solution via v-hosts, but if you don't have access to it you have to use .htaccess)

There are 3 solutions for https via .htaccess

1.) Insert this two lines to your .htaccess-file:
Code:
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

2.) If you want to bind it at the ssl-port:
Code:
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

3.) To redirect all http-requests to https use this:
Code:
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
 
How to redirect to HTTPS using .htaccess behind Nginx Proxy

Code:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L]
 
Back
Top