Skip to content

Instantly share code, notes, and snippets.

@mhemrg
Created March 4, 2019 18:39
Show Gist options
  • Save mhemrg/398f628977d47eebd50a7d681efd4eb9 to your computer and use it in GitHub Desktop.
Save mhemrg/398f628977d47eebd50a7d681efd4eb9 to your computer and use it in GitHub Desktop.
Liara - Wordpress HTTPS config
<?php
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment