• 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.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even 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

Forcing SSL problem

wedz0ff

Chevereto Member
So, i have tried every code that I found, I tried cPanel redirects, the only code that works for me is:

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ https://website.tld/$1 [L]

But i do not want to use it, because I'm using arvixe and I have other domains in my webhosting, so if i try to enter on website2.tld, it redirects to website.tld/FOLDER

Can you guys help me?
 
So, i have tried every code that I found, I tried cPanel redirects, the only code that works for me is:

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ https://website.tld/$1 [L]

But i do not want to use it, because I'm using arvixe and I have other domains in my webhosting, so if i try to enter on website2.tld, it redirects to website.tld/FOLDER

Can you guys help me?

You need to do the redirection using .htaccess in the given website folder and/or use cloudflare custom page rules to redirect only traffic that comes from your cloudflare enabled domain.
 
Ok, I fixed it with PageRules, anyway i still have this problem with addon domains, apparently, it's not related to force SSL and Rewrite rules of Chevereto, can you take a look at it Rodolfo?

ex.: if I type: domain2.tld and it's an addon domain, it redirects me to domain2.tld/FOLDER_OF_MAIN_DOMAIN
 
Last edited:
Chevereto doesn't handle the redirect of the protocol so at script layer there is nothing to do here. Honestly I believe that all the CF + HTTPS issues are due because poor .htaccess editing or misunderstanding of the rewrite module. That said, I insist that you should refer this issue to your hosting company.

The only known issue with SSL + CloudFlare is that it doesn't work well when you enable cloudflare from cPanel, and that isn't even a Chevereto issue is how CloudFlare mixed things and it is now that it has issues with https.

In my case I use cloudflare in chevereto.com (dns traditional implementation) just for DNS resolution but for testing I enabled the CF_HTTPS and forced the https protocol using pagerules/htaccess and I didn't have any issue.
 
Ok, thank you, at this moment i'm using the default chevereto .htaccess, anyway i'm gonna try to contact Arvixe.
 
If it helps, this is my .htaccess which handles the protocol thing, this works when you use CloudFlare + Own SSL cert (in your server):

Code:
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

When you use CloudFlare + CloudFlare SSL I believe that pagerules is what you need.

.htaccess rewrites for domains, protocols and things like that should be right after the first RewriteEngine On line.
 
Back
Top