How to redirect HTTP to HTTPS Using .htaccess on live server

 


Firstly login cPanel and open  .htaccess and pasts this code.



RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
How to redirect HTTP to HTTPS Using .htaccess on live server How to redirect HTTP to HTTPS Using .htaccess on live server Reviewed by TechTubeHQ on February 22, 2022 Rating: 5

No comments:

Powered by Blogger.