Add the following to the top of the .htaccess file in your websites document root to force https:// (SSL) on the domain. If you are using our web hosting, you can use the web file manager or access it using an FTP client. A valid LetsEncrypt SSL certificate should be generated automatically for your domains.

RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

This works for any Apache or LiteSpeed web server.
Ця відповідь Вам допомогла? 28 Користувачі, які знайшли це корисним (127 Голосів)