To redirect to SSL please find below code and place in functions.php file.
function force_https() { if ( !is_ssl() ) { wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 ); exit(); } } add_action ( 'template_redirect', 'force_https', 1 );
Hey There. I came across your site using search. That
is a well written really
article. I’ll be sure to bookmark it and come back to read
more of your
useful information. Thanks for the post. I’ll be back 🙂
LikeLike
Thanks for your support 🙂
LikeLike