How to redirect HTTP to HTTPS Using htaccess

  • On Your Cpanel Dashboard Go To Filemanager > Public_html

 

  • Right Click On .httaccess file & click on edit

 

 

 

  • Paste the code & click on save it

 

 

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *