WP Manifestindependent plugin directory
manifest / security / proxy-aware-https-fix

Proxy-Aware HTTPS Fix

WordPress plugin to enforce HTTPS detection and REST API resolution behind reverse proxies like Caddy

by BitCryptic · github.com/bitcryptic-gw/proxy-aware-https-fix

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/bitcryptic-gw/proxy-aware-https-fix/archive/refs/heads/main.zip

A lightweight WordPress plugin that enforces HTTPS detection and correct REST API resolution when running behind reverse proxies like Caddy, Nginx, or Traefik.

Features

  • Forces $_SERVER['HTTPS'] = 'on' when a genuine X-Forwarded-Proto: https header is present
  • Rewrites home_url() and site_url() to https:// when HTTPS has been detected (no longer unconditional)
  • Ensures Rank Math SEO plugin uses the correct REST API base
  • Compatible with Dockerized WordPress stacks and reverse proxy setups

Installation

  1. Download or clone this repository into your WordPress wp-content/plugins/ directory.
  2. Activate the plugin via the WordPress admin dashboard.

Usage

No configuration required. The plugin auto-detects proxy headers and enforces HTTPS behavior.

Author

BitCryptic
Built by BitCryptic for scalable, proxy-aware WordPress deployments.

License

MIT — see LICENSE for details.