Force secure connection via SSL certificate

Hi Community and Support Team :wave:t2:!

There is some line of code inside the file with the path:


To force a secure connection using the SSL certificate (https://)

For example:

	return [
		'ssl'  => true

I await your response and help please.

Thank you very much.


ssl is not a valid config option, you can remove that.

To rewrite all http requests to https, you can do that in your .htaccess or (on your own server) via the server configuration file.

Something like this after RewriteEngine on:

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
1 Like

Hi @texnixe,

OK perfect. Thank you very much for the answer and help.

Iā€™m going to do it through the file .htaccess