HTTP and HTTPS in WordPress
In the themes header.php include the following in the top of the file: function https( $buffer ) { if( stripos($_SERVER[‘SERVER_PROTOCOL’],’https’) === true ) { return str_replace(‘http ://’, ‘https://’,str_replace(‘http :\/\/’, ‘https:\/\/’, str_replace(‘http %3A%2F%2F’, ‘https%3A%2F%2F’, $buffer))); } else { return $buffer; } … Continued