Redirect http to https using htaccess
Browsing your site over secure connection (HTTPS). One of the easy way to redirect the user to secure connection can be done by using .htaccess. The sample code for Redirect http to https using htaccess as follow
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
0 Comment