http to https, Follow the following:
- Open htaccess file in /public OR /public_html.
- Add following code in your .htaccess at top
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] - Save the File .
- Refresh the webpage, you will see same page is opened with https.
RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]