Redirect HTTP to HTTPS from .htaccess file

  1. Discover the .htaccess file: Go to your File Manager settings and verify the “Show hidden files”

2. Edit the .htaccess file and add the following:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

3. SAVE!

Related Posts

0 thoughts on “Redirect HTTP to HTTPS from .htaccess file

Leave a Reply

Your email address will not be published.