Force redirect http traffic to https
Redirect http to https url using simple file. If you have recently switched to https version, which is recommended, then you want to force the traffic to https.
This can be accomplished using .htaccess file.
How to redirect https to http
1. Create/update the .htaccess file on your root website.
2. Add the following line on the top part of the .htaccess file
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
3. That is it. You don’t need to restart the server for this case.
You can refer this page for more htaccess examples