How do I handle SSL properly when WP is behind a reverse proxy?
You can’t hook is_ssl() to override the result, and as you’ve noticed you can’t edit WordPress Core itself or your changes will get lost if you’re using built-in automatic updates. So the usual approach – see the WordPress documentation – is to set $_SERVER[‘HTTPS’] = ‘on’;, which is the property is_ssl() tests. Add the following … Read more