• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Force HTTPS

zalmoxis

Chevereto Noob
Hello,

Forcing HTTPS via Chevereto's dashboard didn't seem to work (i.e no https happened). Forcing it via cPanel (Domains area, there's a toggle to Force HTTPS) didn't work either.

So I ended up modifying the .htaccess by adding this to the already existing file:

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^mger\.co$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mger\.co$
RewriteRule .* https://mger.co%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^www\.mger\.co$
RewriteRule .* https://mger.co%{REQUEST_URI} [R=301,L]

</IfModule>


It works perfectly now, but I wonder if this is going to break anything (i.e updates, as I've just had an issue previously or perhaps the integration with External Storage)?
 
Seems like an odd way of doing it to me, but there are many different ways, this is all I use,
Code:
RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
and no, doing this will not break anything.
 
Back
Top