NADIN with SSL TLS (force HTTPS)
SSL-Certificate and Settings in NADIN
- Install an SSL-Certificate. For that, log in to the Hosting Control Panel offered by your provider. With only a few clicks you should be able to install a free Let's Encrypt Certificate. Providers not offering free Let's Encrypt Certificates are behind the times (change provider).
- In your NADIN's file config.inc.php, set the following value:
$nadin='https://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]