How to fix not secure website in Chrome starts with finding out whether your site has no valid SSL certificate, is still loading over HTTP, or has mixed content. This practical guide shows you how to issue free SSL in DirectAdmin, force HTTPS, correct WordPress URLs and verify the result.
Keep these details ready before changing anything:
www or the non-www version.Make sure the domain already points to the hosting account. A certificate authority must confirm that you control the domain before it can issue a certificate. If your DNS still points to an old website, certificate issuance may fail or the certificate may be issued for a different destination.
Chrome uses HTTPS certificates to authenticate a website and protect the connection. A plain http:// page does not provide that protection, so Chrome can label it “Not secure”. Chrome also shows stronger warnings for certificate problems or sites identified as unsafe by Safe Browsing; those are different problems from an ordinary HTTP page. See Google’s explanation of Chrome security indicators when the message does not match the examples here.
The common causes are:
http://. This is called mixed content.You normally fix these in order: certificate, redirect, WordPress URLs, then individual mixed-content references.
Why this matters: HTTPS cannot work correctly until the certificate matches the domain that visitors open.
www hostname if visitors can open the website as www.example.com.www.example.com if the certificate only covers example.com, or the reverse.DirectAdmin supports automatic ACME certificate issuance and renewal when the hosting account has the feature enabled. Its documentation places the user workflow under User Level → SSL Certificates, and the domain must be able to complete validation. Read DirectAdmin’s ACME documentation if the panel labels differ.
Success looks like this: opening https://example.com shows the website instead of a certificate error. The HTTP version may still show “Not secure” at this point; the next step changes that behaviour.
Check these items before trying again:
Do not keep retrying while DNS points to the wrong service. Correct the DNS first, then request the certificate again.
Why this matters: a valid certificate does not automatically stop visitors from opening old HTTP links.
www or non-www hostname, choose the version you use as the main site address.DirectAdmin’s current documentation describes a user-level Force SSL with HTTPS redirect setting. It redirects an HTTP request to the matching HTTPS URL, so a page such as http://example.com/about should become https://example.com/about rather than only redirecting the home page.
Success looks like this: enter an HTTP URL in a new browser tab, such as http://example.com/contact, and it changes to the same path beginning with https://. The final page should load without a certificate warning.
Ask your hosting provider whether the domain-level DirectAdmin option is enabled. If you manage the site’s Apache rewrite rules and the panel specifically requires a file-based redirect, add this to the site’s .htaccess file above existing WordPress rules:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Use only one main HTTPS redirect method. Two competing redirect rules can create a loop. You can also follow this HTTP-to-HTTPS redirect guide for the file-based approach.
Why this matters: WordPress may continue generating http:// links even after the server has a working certificate.
http://example.com to https://example.com.Keep the same hostname while changing the protocol. For example, change http://www.example.com to https://www.example.com; do not also change from www to non-www unless that is a separate, planned change.
Success looks like this: links generated by WordPress start with https://, the admin area opens at an HTTPS URL, and internal links do not send you back to HTTP.
Use a file manager or FTP to make a copy of wp-config.php, then add these lines above the comment that says WordPress has stopped editing:
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' ); Replace example.com with your real domain. These constants override the values in the WordPress database so you can regain access and correct the settings. Remove the temporary constants after confirming that the database values are correct, unless your developer intentionally manages the URLs there.
Why this matters: an HTTPS page can still request insecure assets. Chrome may block those requests or show an incomplete security state.
Open the affected page in Chrome, right-click, choose Inspect, and open the Console tab. Look for messages containing Mixed Content and an http:// address. The address in that message usually tells you whether the problem is an image, stylesheet, JavaScript file, font, embedded video or third-party resource.
Fix the reference at its source:
http://example.com image and media URLs with https://example.com.Do not edit serialized database values with a simple text replacement unless your tool understands serialized data. A careless replacement can damage structured WordPress settings. MDN’s mixed-content guidance explains why browsers can upgrade some media requests but block other insecure resources.
If you can use WP-CLI, preview a same-domain replacement before applying it:
wp search-replace 'http://example.com' 'https://example.com' --all-tables-with-prefix --skip-columns=guid --dry-run Only run the command without --dry-run after checking the preview and confirming that the old and new URLs are correct. Ask your developer or hosting provider if you do not normally use WP-CLI.
Success looks like this: the Console has no mixed-content errors on the tested page, images and styles still load, and the page’s source contains HTTPS URLs for your own assets.
For broader WordPress hardening after this fix, see how to secure a WordPress site without a plugin.
Why this matters: checking only the home page can leave an old certificate, redirect or asset problem hidden on another URL.
Run this short test:
| Test | What you should see |
|---|---|
https://example.com | The correct website loads without a certificate error. |
https://www.example.com | The correct site loads, or redirects to your chosen main hostname. |
http://example.com | It redirects to the HTTPS version. |
http://www.example.com | It redirects to the HTTPS version or your chosen HTTPS hostname. |
| An internal page | The same path remains after redirecting. |
| A page with images and forms | Assets load and forms remain usable. |
In Chrome, select the site information icon at the left of the address bar and open the connection details. The exact icon and wording can change between Chrome versions, but a normal HTTPS connection should not show the ordinary “Not secure” label. Do not confuse a full-page red Safe Browsing warning with an SSL configuration issue; investigate that separately.
You can also use Chrome DevTools’ Security panel and Console to find certificate and mixed-content details. Test after clearing only the affected site’s cached data if an old redirect remains visible.
If the warning remains, identify the exact URL shown in Chrome before changing more settings.
| Symptom | Likely cause | Next check |
|---|---|---|
| “Your connection is not private” | Expired certificate, wrong hostname, or an untrusted certificate | Open the certificate details and compare the hostname and expiry with the URL. |
| HTTP works but HTTPS fails | Certificate was not issued, or SSL is not enabled for the domain | Return to DirectAdmin’s SSL Certificates page and request or enable the certificate. |
| HTTPS works but some pages show warnings | Mixed content or an old cached page | Inspect the Console and update the specific http:// resource. |
www works but the root domain fails | DNS or certificate coverage differs between hostnames | Check both DNS records and include both names when requesting the certificate. |
| The page keeps switching between HTTP and HTTPS | Conflicting WordPress, panel or rewrite settings | Keep one HTTPS redirect, verify both WordPress URL fields, and remove duplicate rules. |
| A red full-page warning appears | Chrome Safe Browsing or another serious browser warning | Do not bypass it; investigate the warning and the site’s files separately. |
After every change, retest the exact URL that showed the warning. That prevents you from fixing one hostname while assuming that all versions of the site are fixed.
www and non-www URLs.Once HTTPS is working, review your site’s performance and asset URLs as part of routine maintenance. This WordPress optimisation guide covers the next checks without changing the SSL steps above.
No. It usually means the page is using HTTP, the certificate is invalid, or the page loads an insecure resource. Check the certificate and mixed-content messages first, then investigate the files separately if you see unusual content.
Yes, when the certificate is valid for the exact hostname and the website actually loads over HTTPS. You must still enable the HTTPS redirect and correct mixed-content URLs in WordPress.
The certificate may be for another hostname, expired, or not trusted. If the certificate is valid, inspect the page for mixed content and check whether you are viewing an HTTP link or an old cached redirect.
Issue or renew the certificate in your hosting panel, force HTTPS, then change both WordPress URL fields from HTTP to HTTPS. Finally, inspect the Console and update any theme, plugin, image or stylesheet URL that still begins with http://.
Not for the normal HTTPS connection of a small WordPress website. A free, trusted, automatically renewing certificate is suitable for most sites; the important part is correct hostname coverage, HTTPS redirection and clean site URLs.
{“@context”: “https://schema.org”, “@type”: “FAQPage”, “mainEntity”: [{“@type”: “Question”, “name”: “Does “Not Secure” mean my website is hacked?”, “acceptedAnswer”: {“@type”: “Answer”, “text”: “No. It usually means the page is using HTTP, the certificate is invalid, or the page loads an insecure resource. Check the certificate and mixed-content messages first, then investigate the files separately if you see unusual content.”}}, {“@type”: “Question”, “name”: “Can a free SSL certificate remove the Chrome warning?”, “acceptedAnswer”: {“@type”: “Answer”, “text”: “Yes, when the certificate is valid for the exact hostname and the website actually loads over HTTPS. You must still enable the HTTPS redirect and correct mixed-content URLs in WordPress.”}}, {“@type”: “Question”, “name”: “Why does Chrome say “Not Secure” when my site already has HTTPS?”, “acceptedAnswer”: {“@type”: “Answer”, “text”: “The certificate may be for another hostname, expired, or not trusted. If the certificate is valid, inspect the page for mixed content and check whether you are viewing an HTTP link or an old cached redirect.”}}, {“@type”: “Question”, “name”: “How do I fix “Not Secure” on a WordPress website?”, “acceptedAnswer”: {“@type”: “Answer”, “text”: “Issue or renew the certificate in your hosting panel, force HTTPS, then change both WordPress URL fields from HTTP to HTTPS. Finally, inspect the Console and update any theme, plugin, image or stylesheet URL that still begins with http://.”}}, {“@type”: “Question”, “name”: “Do I need a paid SSL certificate?”, “acceptedAnswer”: {“@type”: “Answer”, “text”: “Not for the normal HTTPS connection of a small WordPress website. A free, trusted, automatically renewing certificate is suitable for most sites; the important part is correct hostname coverage, HTTPS redirection and clean site URLs.”}}]}Learn what happens when a domain expires, how grace and redemption periods work, what recovery…
Compare HostLelo alternatives for Indian websites on renewal price, panels, email, SSL, backups, UPI payments…
Compare wix vs wordpress for Indian small businesses: 3-year rupee cost, beginner ease, UPI/Razorpay payments,…
Learn how to transfer domain to another registrar: check the 60-day rule, unlock it, use…
Learn how to create a directadmin backup, download it off-server, and restore website files, databases,…
Compare shared hosting vs wordpress hosting by features, management, price and use case, then choose…
This website uses cookies.