Redirect http to https simple html website using .htaccess
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
<IfModule mime_module>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]
</IfModule>