Home » Web Tutorials » Redirect HTTP To HTTPS .htaccess

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]

Leave a Comment

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

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

Scroll to Top