Myweblogin Knowledge Base

Force https using the htaccess file

RewriteEngine On 
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ DOMAINNAME/$1 [R,L]

if not on cloudflare

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ DOMAINNAME/$1 [R,L]

 

Update DOMAINNAME to the correct https:// domain

Added: 2025-4-04 and last modified: 2025-4-04
Related Topics