HTTP and HTTPS in WordPress

posted in: Uncategorized | 0

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

1 2 3 4