Skip to content

Force HTTPS WordPress

A certificate makes HTTPS possible. It does not stop old bookmarks from arriving over plain HTTP or one forgotten picture from removing the padlock.

HTTPS Protocol add-on in BotBlocker Security

The padlock has two enemies

Plain links that still work, and one old address inside a secure page.

What breaks after the certificate

A site gets a certificate and the front page turns green. Then the reports start: an old campaign link opens over plain HTTP. A post from years ago loads a photo from an address that begins with http. The browser calls the second case mixed content and removes the padlock, or blocks the item outright.

To force HTTPS WordPress owners usually edit server files, then search every post by hand. Both steps take an afternoon and neither one stays correct after the next import. The add-on does the same work inside WordPress, on the response, without touching stored content.

It needs one thing from you: a certificate that already works. The panel says which state it sees and shows the current protocol next to your home address.

Two jobs and two switches

Permanent redirect

Every http request goes to the same address over https with a 301, so search engines learn the secure version.

Forms keep their data

A form posted over plain HTTP is redirected with a 308, a code that repeats the request instead of dropping it.

Links repaired on the fly

Old addresses in images, frames, scripts, stylesheets and inline styles change to https as the page is built.

Nothing stored is edited

The fix changes the response, not the database. Switch it off and your posts are exactly as they were.

Where the redirect stops

Two paths stay open. The admin area and the login screen follow the WordPress address settings instead, so a misconfigured certificate does not lock you out of your own site. Certificate checks under the well-known challenge folder are never redirected, because Let’s Encrypt style renewal reads them over plain HTTP.

The redirect runs after the BotBlocker visitor check. A visitor who must pass a check sees that page over http first and reaches https only after passing. Hosts that redirect at the server level close that gap, and the two redirects do not conflict.

Behind a proxy or CDN the server sees a plain connection while the visitor sees a secure one. The add-on then redirects again and again. The proxy trust switch tells it to read the forwarded note from Cloudflare, CloudFront, Azure or a standard forwarded header.

Settings that change the result

Redirect switch

Turn it off only while you replace a certificate or move domains. Pointing a redirect at a host without a valid certificate gives visitors a browser error.

Mixed content fix

Works on pages served over HTTPS. On a plain page it does nothing, so test the secure address, not the old one.

Proxy trust

Off by default. A header can be forged, so enable it only behind a proxy that strips fake notes.

What the repair cannot reach

The fix reads the HTML of the page. An address inside a separate CSS or JavaScript file is outside its reach, and so is a URL that a script builds at runtime. Those need a developer or a plugin setting.

If a remote host has no HTTPS version at all, the rewritten address fails and the picture disappears. Upload that file to your own server instead of waiting for the fix to work.

The admin area repair is a separate switch and it is off by default. Enable it only when admin screens show broken images or warnings, because it adds work to every admin page.

One of hundreds of BotBlocker capabilities

This add-on covers one job. The core plugin brings the firewall, the visitor check, the login rules and the log; PRO features extend them further. Install BotBlocker, turn on what your site needs and leave the rest off.

BotBlocker protection shield

Questions about HTTPS

The page reloads in a loop. What is wrong?
Almost always a proxy. Ask your host whether a CDN or load balancer terminates the certificate, then enable proxy trust and test in a private window.
One page still has no padlock.
Open the browser console. It names the item. An address inside a theme stylesheet or built by a script cannot be repaired here, so it needs a code change.
A picture from another site broke after the fix.
That site has no secure version. Download the file and upload it to your own media library.
The check page opens over plain HTTP.
The redirect waits until the visitor passes. Ask your host for a server-level redirect if the check page has to start over HTTPS.
Does the redirect change my stored links?
No. Your database keeps the old addresses and the visitor receives the repaired page. The web.dev guide to HTTPS explains why mixed content matters in the browser.