• 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

    • ⚠️ 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 SSL

djcyry

Chevereto Member
Hello ,
I have purchase a ssl certificate and i have added to cpanel (arvixe) etc .
I want to force it , always redirect the user to :
Code:
https://www.tupics.net/
Right now i have 4 versions working : with www , without www , with https , without https .
How can i do it ? i have tried from htaccess but is not working , and the cloudflare guide to
force ssl is not working (no "always use https" option)
 
Try this... (dont forget to replace domain.com)

Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
 
Try this... (dont forget to replace domain.com)

Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]

No works ....:(
 
Code:
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{SERVER_PORT} 80
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
Code:
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{SERVER_PORT} 80
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Not working..i dont understand why . I have deactivate cloudflare also, and no results
 
If you are using CloudFlare you need to setup https there.
 
Maybe you are doing something wrong related to the .htaccess rules or something. Refer to your hosting company and/or CloudFlare.
 
Hi djcyry,

To solve the problem of HTTPS, you should use this script below.
Edit the htaccess file and after the: #RewriteBase / and this code:
Code:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
I'm sure this script to solve the problem of HTTPS.

Good luck!
 
Sorry i am unable to get this work correctly... with all combinations it leaves some url without www
 
I have the default htaccess , hosting arvixe , cloudflare activate :

Code:
# Disable server signature
ServerSignature Off

# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks

<IfModule mod_rewrite.c>

    RewriteEngine On
  
    # If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
    # You will also have to change the path to reflect the path to your Chevereto installation
    # If you are using alias is most likely that you will need this.
    #RewriteBase /
  
    # 404 images
    # If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
    # Make sure to apply the correct paths to reflect your current installation
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule images/.+\.(gif|jpe?g|png|bmp) - [NC,L,R=404]
    #RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/images/system/404.gif [NC,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !\.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpe?g|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
    RewriteRule . index.php [L]

</IfModule>
AddHandler application/x-httpd-php54 .php54 .php
 
did you test if

Code:
site.com
www.site.com
https://site.com

all redirects to https://www.site.com

?
Ok, try this code:
Code:
RewriteCond %{HTTP_HOST} ^site\.com$ [NC] 
RewriteRule ^(.*)$ https://www.site.com/$1 [R=301,QSA,L]
 
For some reason editing it from ftp not working, not saving the modifications , so
i made it from cpanel - file manager, and its works now . Thanks
 
Back
Top