Plugin
Force SSL – HTTPS Redirect
Force HTTPS without the lockout: the certificate is verified first, and proxies like Cloudflare are detected instead of looping.
/**
Plugin header
- Plugin name:
- Force SSL – HTTPS Redirect – EPAS
- Version:
- 1.0.0
- Requires at least:
- 6.4
- Requires PHP:
- 7.4
- Languages:
- English, Lietuvių
- License:
- GPL-2.0-or-later
- Download size:
- 33 KB
*/
What it does
- Checks your certificate over a real loopback request before it lets you switch HTTPS on — the difference between a redirect and a lockout.
- 301-redirects http:// to https:// site-wide, and can force the admin over TLS as well.
- Fixes mixed content by filtering output, with an optional one-click migration of stored http:// URLs — and a restore if you change your mind.
- HSTS is opt-in and explained in plain language, because it is the one setting you cannot take back quickly.
- A kill switch constant (
EPAS_FORCE_SSL_DISABLE) and a refusal to enable when wp-config pins your site to http:// keep you out of redirect loops.
Questions
Can this lock me out of my site?
That is the failure mode the plugin is built around. It verifies HTTPS actually answers before enabling anything, refuses to run when WP_HOME/WP_SITEURL are pinned to http://, and ships a constant that disables it from wp-config if you ever need an escape hatch.
Do I still need this if my host already redirects?
If your host redirects everything correctly, no. Use it when the redirect is partial, when stored URLs still say http://, or when you want mixed-content fixing and HSTS without touching server config.
What about my old links?
They keep working: every http:// request is answered with a permanent redirect to the https:// address, which is what search engines want to see.
How to get it
This plugin is finished and being prepared for the WordPress.org plugin directory. Until it is published there, email us and we will send you the current zip.