Pentru redirectionarea unui URL din http:// in https:// (varianta URL ce foloseste un certificate SSL) trebuie doar sa adaugati in fisierul .htaccess:
RewriteEngine On RewriteCond %{ENV:HTTPS} !on RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]