A 'Not Secure' warning on your website can deter visitors and harm your credibility. This warning typically appears when your website lacks a valid SSL certificate, compromising the security of data transmitted between your site and its users. In this guide, we’ll walk you through the steps to fix this issue and ensure your website is safe for users.
The 'Not Secure' label is a browser notification indicating that your website does not use HTTPS (HyperText Transfer Protocol Secure). Without HTTPS, data exchanges on your website are vulnerable to interception, exposing sensitive information such as login credentials or payment details.
First, confirm whether your website has an SSL certificate installed. You can do this by looking at your website’s URL; if it starts with http://
instead of https://
, it lacks SSL encryption. Use tools like SSL Checker to verify the certificate’s validity if you believe one is installed.
If you don’t have an SSL certificate or it has expired, purchase or renew it through a trusted Certificate Authority (CA) or your hosting provider. Some hosting services, such as SiteGround or Bluehost, offer free SSL certificates via Let’s Encrypt.
Once you have an SSL certificate, install it on your server. For cPanel-based hosting, navigate to SSL/TLS Manager and upload the certificate files. Alternatively, for Apache or Nginx servers, configure the ssl_certificate
and ssl_certificate_key
paths in the server configuration files:
httpd.conf
or ssl.conf
file to include your certificate paths.ssl_certificate
and ssl_certificate_key
directives in your server block.Update all internal links, scripts, and media files to use HTTPS. Mixed content (HTTP elements on an HTTPS page) can still trigger warnings. Use tools like the Why No Padlock checker to identify and fix mixed content issues.
Configure your server to automatically redirect HTTP traffic to HTTPS. Add the following code to your .htaccess
file for Apache servers:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
For Nginx servers, include the following in your configuration:
server {
listen 80;
server_name yourdomain.com;
return 301 https://$host$request_uri;
}
After making changes, test your website to ensure the 'Not Secure' warning is resolved. Check your browser’s address bar for the padlock icon, which indicates a secure connection. You can also verify the SSL setup using tools like SSL Labs.
Addressing a 'Not Secure' warning is crucial for protecting user data, building trust, and maintaining compliance. While the steps above can help resolve the issue, technical configurations can be complex. If you need assistance, don’t hesitate to reach out to WebCareSG. Our team specializes in website security and can ensure your site is fully optimized and secure for your audience.
Learn how to identify and fix broken links on your website to improve SEO, user experience, and site performance.
Learn how to secure your website against basic threats. Protect your online presence with these essential tips and steps.
Learn how to identify and fix database connection errors on your website with this step-by-step guide. Avoid downtime and keep your site running smoothly!
Whatsapp us on