Redirect to a secure https connection

Add the below given code in your htaccess page to redirect to https connection

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Share

Leave a Reply

Your email address will not be published. Required fields are marked *