diff --git a/public/templates/conf/sites-available/example.com.conf.html b/public/templates/conf/sites-available/example.com.conf.html index b34fb19..f92d98d 100644 --- a/public/templates/conf/sites-available/example.com.conf.html +++ b/public/templates/conf/sites-available/example.com.conf.html @@ -183,7 +183,7 @@ server { ✔ Let's Encrypt --> ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem; - return 301 https://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; + return 301 http{{ isHTTPS() ? 's' : '' }}://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; }