• 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

Redirect http traffic to https using htaccess file

Version
4.0.5
Website URL
https://www.imageride.net
PHP version
8.1.13
Database driver
MySQL
Database version
8.0.31
Web browser
IE, Firefox, Chrome

rsunny2012

Chevereto Member
Hello,

My website is enabled with ssl cert using cloudflare. I have enabled redirect from http to https in cloudflare and added the below line under htaccess file

RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://www.imageride.net/$1 [R=301,L]

I would like to redirect my website http://imageride.net or imageride.net to https://www.imageride.net
I have edited env file as below

'CHEVERETO_ENABLE_HTACCESS_CHECK' => '1',
or
'CHEVERETO_ENABLE_HTACCESS_CHECK' => 'true',

After performing the above steps also when i enter imageride.net, site is redirecting to https://imageride.net

www is not getting added in the url

what mistake i am doing here

if i add anything under htaccess file, nothing is showing up . how can i make values under htaccess work with chevereto script
 
Simple redirection ...
From imageride.net on www.imageride.net

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^imageride\.net [NC]
RewriteRule (.*) https://www.imageride.net/$1 [R=301,L]

I see that you may use cPanel, there you can certainly also set something regarding the redirection. With Plesk you can at least specify a preference whether with or without www or both.
 
Simple redirection ...
From imageride.net on www.imageride.net

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^imageride\.net [NC]
RewriteRule (.*) https://www.imageride.net/$1 [R=301,L]

I see that you may use cPanel, there you can certainly also set something regarding the redirection. With Plesk you can at least specify a preference whether with or without www or both.
Thank you. Do i need to add anything under env.php file for allowing Htaccess file ?

'CHEVERETO_ENABLE_HTACCESS_CHECK' => '1',
or
'CHEVERETO_ENABLE_HTACCESS_CHECK' => 'true',

should i leave env.php file as default or do i need to add 1 or true to enable htaccess ?
 
Back
Top