I've found this code on the FAQ page but there wasn't much information.
function custom_force_ssl( $force_ssl, $post_id ) {
if ( $post_id == 5 ) {
return true
}
return $force_ssl;
}
add_filter('force_ssl' , 'custom_force_ssl', 10, 2);
I'm not great at PHP but from what I can tell, that's just to secure one page.
So instead I added
force_ssl == true;
to the header.php file in my theme folder but it still seems it isn't catching.
What am I missing?
Secure site: https://floridaga.net
Insecure page: http://floridaga.net/members/occupyflorida/
How the heck do I lock down the entire site??