Page 1 of 1

https not configured correctly

Posted: Sat Jun 19, 2021 9:21 pm
by ceebeeit
In Microsoft Edge the browser displays a 'not safe sign'.
I have https installed on our domain, but I think the automatic switch to https://www.spinnerij.nl/ is not configured correctly.
My .htaccess file starts with:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^spinnerij.nl
RewriteRule (.*) https://www.spinnerij.nl/$1 [R=301,NE,QSA,L]
DirectoryIndex index.php

Can someone give me the right syntax?
I would like that both www.spinnerij.nl and spinnerij.nl show https://www.spinnerij.nl/ without warnings.

Re: https not configured correctly

Posted: Sat Jun 19, 2021 9:41 pm
by Cue4cheap
ceebeeit wrote:
Sat Jun 19, 2021 9:21 pm
In Microsoft Edge the browser displays a 'not safe sign'.
I have https installed on our domain, but I think the automatic switch to https://www.spinnerij.nl/ is not configured correctly.
My .htaccess file starts with:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^spinnerij.nl
RewriteRule (.*) https://www.spinnerij.nl/$1 [R=301,NE,QSA,L]
DirectoryIndex index.php

Can someone give me the right syntax?
I would like that both www.spinnerij.nl and spinnerij.nl show https://www.spinnerij.nl/ without warnings.
What do you have configured in your config.php files for
// HTTP
define('HTTP_SERVER', ' ');

// HTTPS
define('HTTPS_SERVER', ' ');

Mike

Re: https not configured correctly

Posted: Sat Jun 19, 2021 10:00 pm
by Cue4cheap
and

RewriteEngine On
RewriteCond %{HTTP_HOST} spinnerij\.nl [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.spinnerij.nl/$1 [R,L]

Re: https not configured correctly

Posted: Sun Jun 20, 2021 8:47 pm
by ceebeeit
It works.
Thanks a lot.