Redirect http to https using htaccess
Redirect http to https using htaccess if you want to secure your website you must have to install SSL certificate
You may also like: How to Install SSL Certificate
Follow below step to redirect your website to https :-
Step1. Login to Cpanel
Step2. Go to Public_html Folder
Step3. Create .htaccess File
Step4. Edit htaccess File
Step5. Enter Below Code in .htaccess file and save
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
if you already have .htaccess file in your cpanel do not duplicate.RewriteEngine On
Leave a Reply