How to redirect website http to https by htaccess

Training Mode Regular Fastrack Crash
Classroom | Online
Course Description :
Step1 : Create .htacess file 
Step2 : Write following code :

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?domain-name\.com
RewriteRule ^(.*)$ https://www.domain-name/$1 [R,L]

Step3 : In the place of domain-name write your domain name and replace .com with your domain extension 

Request a Demo

Whatsapp