Title: HTTPS for home page
Last modified: August 20, 2016

---

# HTTPS for home page

 *  Resolved [leoproducer](https://wordpress.org/support/users/leoproducer/)
 * (@leoproducer)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/https-for-home-page/)
 * I had an issue since I have no idea to make all pages https EXCEPT for 1 page.
   Therefore, I am forced to manually make every page except that one into https.
   The problem is that I dont know how to make the main home page, my [http://www.domain.com](http://www.domain.com),
   https. How can I go about doing this?
 * [http://wordpress.org/extend/plugins/wordpress-https/](http://wordpress.org/extend/plugins/wordpress-https/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/https-for-home-page/#post-3134039)
 * That’s a pain. Don’t do that. You can use a piece of code in your theme’s functions.
   php (or in a custom plugin). Change ‘5’ to the ID of the post you don’t want 
   to be secure.
 *     ```
       function custom_force_ssl( $force_ssl, $post_id = 0, $url = '' ) {
           if ( $post_id == 5 ) {
               $force_ssl = false;
           } else {
               $force_ssl = true;
           }
           return $force_ssl;
       }
   
       add_filter('force_ssl' , 'custom_force_ssl', 10, 3);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘HTTPS for home page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-https_bec2c9.svg)
 * [WordPress HTTPS (SSL)](https://wordpress.org/plugins/wordpress-https/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-https/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-https/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-https/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-https/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-https/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mvied](https://wordpress.org/support/users/mvied/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/https-for-home-page/#post-3134039)
 * Status: resolved