jrobinsonc
7/20/2017 - 7:55 PM

WordPress - Redirect to HTTPS (SSL)

WordPress - Redirect to HTTPS (SSL)

if (!is_ssl()) {
    wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301);
    exit;
}