SSL & HTTPS

What is HSTS and should I enable it?

HSTS (HTTP Strict Transport Security) is a security header that tells browsers to only ever connect to your site over HTTPS, even if someone types http:// or clicks an old insecure link. It closes a small window where a visitor's first request could be intercepted.

It is a strong security measure, but enable it carefully:

To enable it, add this to your .htaccess file:

Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

Start with a shorter max-age (for example a few hours) while testing, then increase it to a year once you are confident.

Only add preload and submit to the browser preload list if you are certain every subdomain will always use HTTPS, because it is hard to reverse. If you would like us to configure HSTS safely for you, contact WhatsApp +971 58 553 6767 or support@dirhamaday.ae.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

Is SSL free with Dirham A Day?How does the free SSL certificate work?How do I install or enable SSL on my site?Does my SSL certificate renew automatically?How do I force my whole site to use HTTPS?