How to create redirect http to https

Miles

New member
#2
Hi!
It's easy. If you have existing code in your .htaccess, add the following:
Code:
Код:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]