Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kellengarnaas

    (@kellengarnaas)

    Thanks for the response!

    I’ve added the following to the top of the wp-config.php:

    if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && strpos($_SERVER[‘HTTP_X_FORWARDED_PROTO’], ‘https’) !== false) {

        $_SERVER[‘HTTPS’] = ‘on’;

    }

    if (!empty($_SERVER[‘HTTP_X_FORWARDED_HOST’])) {

        $_SERVER[‘HTTP_HOST’] = $_SERVER[‘HTTP_X_FORWARDED_HOST’];

    }

    Unfortunately, now I am seeing w3tc_pagecache_reject_reason on all requests. Is this the correct approach?

Viewing 1 replies (of 1 total)