Support » Fixing WordPress » SSL only for one wordpress page?

  • Seth C



    I have a contact form on my site that I want to secure with SSL. I already purchased it and was able to get it working with my entire site, however I still haven’t found a way to only get it on the contact. Does anyone know how to do this?


Viewing 1 replies (of 1 total)
  • your going to have to create a custom template for contact instructions can be found here:

    and at the top of that template file put this.

    // If page requires SSL, and we're not in SSL mode,
    // redirect to the SSL version of the page
    if($requireSSL && $_SERVER['SERVER_PORT'] != 443) {
       header("HTTP/1.1 301 Moved Permanently");
       header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
Viewing 1 replies (of 1 total)
  • The topic ‘SSL only for one wordpress page?’ is closed to new replies.