๐Ÿ–ฅ๏ธ Hosting

Forcing the domain to serve securely using HTTPS (for any site)

Goto Public directory to paste this code inside .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] Header alway

Updated Sep 29, 2026 ยท ๐Ÿ‘ 2 views

Goto Public directory to paste this code inside .htaccess

RewriteEngine On
                    RewriteCond %{HTTPS} !=on
                    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
                    Header always set Content-Security-Policy "upgrade-insecure-requests;"

Related articles

Was this not quite what you needed?

Our support team is available 24/7.

Contact Support

Need help? ๐Ÿ’ฌ

Chat with us on WhatsApp โ€” we reply fast.

Yahmis NG Support

Typically replies within minutes

Hi there ๐Ÿ‘‹ โ€” questions about domains, hosting, VPS or billing? Tap below to start a chat.
๐Ÿ’ฌ Start WhatsApp Chat