How to redirect from http to https

[vc_row][vc_column][vc_column_text]If you want to redirect all the URLs from http to https then add the following rules in .htaccess files
OR
Redirect from http://domain.com/anything to https://domain.com/anything
For Example :
Redirect  from
http://indianwebportal.com/anything
to
https://www.indianwebportal.com/anything
=================================
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /
RewriteRule ^(.*)$ https://www.isquarehost.com/$1 [R,L]

=================================[/vc_column_text][/vc_column][/vc_row]