Force Redirect http:// to https:// in codeigniter by .htaccess

Force Redirect http:// to https:// in codeigniter by .htaccess

simply copy and paste this code in htaccess of root
 to redirect http:// to https://


# Enforce SSL https://www.
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Comments