Skip to main content
All CollectionsDomains, Web Servers, and BeyondHosting
How to Fix the “HSTS Missing from HTTPS Server” Issue
How to Fix the “HSTS Missing from HTTPS Server” Issue
Rapyd Team avatar
Written by Rapyd Team
Updated over a week ago

The web's security landscape is ever-evolving, and ensuring your website complies with the best practices is crucial. One such practice is using HSTS (HTTP Strict Transport Security), a web server directive that enforces secure (HTTPS) connections. If you've encountered a "HSTS missing from HTTPS server" warning, it's essential to address it for enhanced security. Here’s how to rectify this issue and fortify your website.

Ensuring a secure browsing experience for users is a top priority for website administrators. Implementing HSTS is one step in achieving this objective. This article, suited for both technical and non-technical readers, breaks down the intricacies of HSTS and offers a step-by-step guide on how to address the "HSTS missing" warning.

Understanding HSTS and Its Importance

HSTS (HTTP Strict Transport Security) is a security feature implemented by web servers to enforce the use of HTTPS, ensuring that browsers only connect to the server securely. It prevents protocol downgrade attacks and cookie hijacking, ensuring a safer browsing experience.

Recognizing the Warning Signs

The "HSTS missing from HTTPS server" warning typically arises during website security audits or when using security tools. It indicates that while your server might be using HTTPS, it hasn’t enforced HSTS, leaving room for potential vulnerabilities.

Implementing HSTS on Your Web Server

The process of enabling HSTS depends on your web server:

  • Apache: Modify your .htaccess file or the server configuration file and add: Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"

  • Nginx: In the server block, add: add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains' always;

Remember to restart your server after making these changes.

Testing HSTS Implementation

After implementing HSTS, it's essential to test it to ensure it's working correctly. Tools like HSTS Preload Checker can be used. Input your website URL, and the tool will provide feedback on your HSTS configuration.

Common Pitfalls and How to Avoid Them

While implementing HSTS enhances security, there are pitfalls to be aware of:

  • Lockout: If your SSL certificate expires and HSTS is active, users won't be able to access your site until the certificate is renewed.

  • Domain Limitations: If you use third-party services on a subdomain that isn't HTTPS-enabled, it might become inaccessible due to HSTS.

To avoid these, always ensure your SSL certificates are up-to-date, and be mindful when rolling out HSTS across subdomains.


Implementing HSTS on your HTTPS server is a robust move towards ensuring optimal website security. It not only protects against specific vulnerabilities but also signals to your users that their safety is a priority. Like all security measures, it's essential to approach HSTS with a comprehensive understanding, ensuring its benefits are maximized while potential pitfalls are skillfully navigated.

Did this answer your question?