• 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

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