Social Share

How to redirect a http:// to https://

To redirect http:// to https://, you can use this rule in your .httacess :

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomaine.com/$1 [R,L]

Replace mydomain.com with your domain name.