Redirect HTTP To HTTPS .htaccess - Tutorials & Guide | For Software, Android and Web Development

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]