• 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 & www

s-f-r-j

Chevereto Member
Good day,

What would be correct .htaccess setting to force both SSL and WWW for chevereto latest version?

Currently in .htaccess i have:


RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{SERVER_PORT} 80
RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This is not forcing www though, how to fix this?

Thanks! :)
 
Code:
<VirtualHost 123.123.123.123:80>
ServerName YourDomain.com
ServerAlias www.YourDomain.com
Redirect permanent / https://www.YourDomain.com/
</VirtualHost>

<VirtualHost 123.123.123.123:443>
ServerName www.YourDomain.com
Options -Indexes FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !=www.YourDomain.com
RewriteRule (.*) https://www.YourDomain.com/$1 [R=301,L]
</Directory>
</VirtualHost>
 
Back
Top