Redirect HTTP To HTTPS .htaccess

Know here how to redirect http to https through .htaccess file.

.htaccess code

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Redirect HTTP To HTTPS .htaccess
5 (100%) 1 vote

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.