A site owner enables an HTTPS plugin, adds an Apache rule, and turns on a CDN redirect at the same time. Requests begin bouncing between HTTP and HTTPS because the CDN talks to the origin over HTTP while WordPress believes each forwarded request is insecure.
The repair is not another redirect. It is a clear design with working TLS, one canonical host, one redirect owner, and trustworthy protocol information between the proxy and WordPress.
What it means
Forcing HTTPS means redirecting supported HTTP requests to one canonical HTTPS address after the certificate and encrypted route already work. The redirect may live at the CDN, web server, or WordPress layer, but only one component should own the same decision.
A proxy complicates scheme detection because the visitor can use HTTPS while the proxy connects to WordPress over HTTP. WordPress must trust forwarded protocol headers only from known proxies; otherwise it may create a loop or accept spoofed information.
A realistic WordPress example
In the example, the CDN redirects visitors to HTTPS, but the origin sees an HTTP connection and the plugin redirects again. The Apache rule also changes the hostname, so one request passes through several conflicting decisions. Webhook callbacks and wp-adminbecome trapped in the same loop.
After direct origin HTTPS is confirmed, the team selects the CDN as the sole public redirect owner, configures trusted scheme detection, and removes the duplicate WordPress and Apache rules. Each host and protocol combination then reaches the canonical URL once.
Why it matters and when to use it
Consistent HTTPS protects sessions and form data and prevents WordPress from generating mixed schemes. Poorly ordered enforcement can instead lock visitors and administrators out, break API callbacks, or cache a redirect loop at the edge.
Enforce HTTPS only after every public hostname has a valid certificate, the origin route is understood, and WordPress uses the intended canonical addresses. HSTS is a later, separate decision because browsers remember it beyond an ordinary redirect change.
A straightforward route for beginners
- Confirm that every supported hostname opens directly over HTTPS with a valid certificate.
- Record the current WordPress Address, Site Address, CDN mode, web-server rules, and plugin redirects.
- Choose one component to own the HTTP-to-HTTPS redirect and disable overlapping rules.
- If a trusted proxy is present, configure WordPress to recognize its forwarded scheme safely.
- Test apex and
www, HTTP and HTTPS, login, logout, password reset, forms, REST requests, and webhooks before making the rule permanent.
The advanced route
Build a small matrix of public hostnames and schemes and inspect every status and Locationheader without cookies. A public HTTP request should normally reach the chosen HTTPS host in one redirect, while a correct HTTPS request should not redirect merely because the origin connection uses another scheme.
Review the trust boundary for Forwardedand X-Forwarded-Proto, multisite domain mapping, health checks, OAuth and payment callbacks, REST and XML-RPC endpoints, scheduled requests, and any cache that stores redirects.
Risks, common mistakes, backup, and rollback
Do not stack plugin, server, and CDN rules or trust forwarded headers from arbitrary clients. Changing database URLs before TLS works, redirecting health endpoints, caching a loop, and enabling HSTS during diagnosis can make recovery much harder.
Keep a tested route to the origin or administration area. If login, callbacks, or health checks fail, disable the single new rule and restore the prior WordPress URLs if they changed. Clear only the redirect cache affected by the rollback.
How AIOWS helps:
AIOWS SSL Manager
AIOWS SSL Manager provides a WordPress view of supported HTTPS settings, redirect configuration, and mixed-content status. It can be the WordPress-side redirect owner when that role has been chosen deliberately and duplicate rules elsewhere have been removed.
Before enabling enforcement, verify the certificate and origin connection, confirm the canonical WordPress URLs, and preserve an administrative recovery path. Then run the host-and-protocol matrix together with login, forms, REST calls, and callbacks.
The module cannot repair external certificates, configure a CDN’s origin mode, or override web-server rules. Those layers must be aligned by their owners so that AIOWS receives accurate protocol information and is not competing with another redirect.
Related AIOWS articles
- Fix Mixed Content in WordPress: HTTPS Error Guide
- WordPress Not Secure After SSL: Complete Fix Guide
- How to Redirect HTTP to HTTPS in WordPress with .htaccess
Conclusion and recommended route
Establish trusted TLS first, select one canonical host and one redirect owner, and handle proxy scheme information explicitly. Test all public host and protocol combinations plus administration and callbacks with a reversible rule before considering permanent redirects or HSTS.









