I tried to secure the login and make Q&A more professionnaly but I couln't get it works by this ways. Thanks for you advices to make work the https login
1/
.htacess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://website/login?to=/$1 [R,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$
https://website.com/answers/register?to=/$1 [R,L]
do not work
2/ in config.php
define('FORCE_SSL_ADMIN', true);
if($_SERVER["REQUEST_URI"] == "/contact-us/" && $_SERVER["HTTPS"] != "on") {
$newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("Location: $newurl");
echo $newurl;
exit();
}
do not work
Thanks.