
- 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 ^(.*)$ https://www.yourdomain.com/$1 [R,L]
3. SAVE!
0 thoughts on “Redirect HTTP to HTTPS from .htaccess file”