How can I force HTTPS / SSL on my website?

Become part of a great team that has nothing less as its goal than to be the world's best game server provider. Keep facing new, challenging and exciting tasks at a company that values your opinion.

open positions @ Nitrado
  • How can I force HTTPS / SSL on my website if I only use www.***.com

    I tried this entry in the .htaccess file :

    RewriteEngine On

    RewriteCond %{REQUEST_URI} !\.well-known/acme-challenge

    RewriteCond %{REQUEST_URI} !(.*)\.txt

    RewriteCond %{HTTPS} !=on

    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    But when I reload my website I get this error message : "Internal Server Error"