Title: Just switched site to https (questions)
Last modified: July 19, 2018

---

# Just switched site to https (questions)

 *  Resolved [Revived](https://wordpress.org/support/users/revived/)
 * (@revived)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/just-switched-site-to-https-questions/)
 * 1) My site used a custom post type of “books” so I found the following which 
   I added to my child functions.php file (is the correct implementation?)
 *     ```
       function jeherve_add_cpt_sitemaps( $post_types ) {
           $post_types[] = 'books';
           return $post_types;
       }
       add_filter( 'jetpack_sitemap_post_types', 'jeherve_add_cpt_sitemaps' );
       ```
   
 * 2) When I navigate to sitemap.xml, it’s not directed to the https version (I’m
   using Really Simple SSL and my assumption was, during setup, that everything 
   should now redirect to the https version).
 * 3) Do the sitemap file(s) automatically update periodically?

Viewing 1 replies (of 1 total)

 *  [pmciano](https://wordpress.org/support/users/pmciano/)
 * (@pmciano)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/just-switched-site-to-https-questions/#post-10511836)
 * [@revived](https://wordpress.org/support/users/revived/)
 * > 1) My site used a custom post type of “books” so I found the following which
   > I added to my child functions.php file (is the correct implementation?)
 * By default, [Jetpack Sitemaps](https://jetpack.com/support/sitemaps/) supports
   Posts and Pages, but you can add support for Jetpack Custom Content Types. There
   is an example you can check out here:
 * [https://developer.jetpack.com/2016/01/28/sitemaps-add-custom-post-type-support/](https://developer.jetpack.com/2016/01/28/sitemaps-add-custom-post-type-support/)
 * Your example seems to be OK.
 * > 2) When I navigate to sitemap.xml, it’s not directed to the https version (
   > I’m using Really Simple SSL and my assumption was, during setup, that everything
   > should now redirect to the https version).
 * If you’re having trouble implementing HTTPS in a satisfactory way, please try
   reaching out to your host or the developers of the Really Simple SSL plugin:
 * [https://wordpress.org/support/plugin/really-simple-ssl](https://wordpress.org/support/plugin/really-simple-ssl)
 * They should be able to assist you with this.
 * > 3) Do the sitemap file(s) automatically update periodically?
 * Yes, the sitemap should be periodically updated to reflect the new content on
   your site.
 * We hope that helps, and let us know if you have any more questions!

Viewing 1 replies (of 1 total)

The topic ‘Just switched site to https (questions)’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pmciano](https://wordpress.org/support/users/pmciano/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/just-switched-site-to-https-questions/#post-10511836)
 * Status: resolved