Title: SSL?
Last modified: August 22, 2016

---

# SSL?

 *  Resolved [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ssl-22/)
 * Is there any way to enforce SSL?
 * [https://wordpress.org/plugins/public-post-preview/](https://wordpress.org/plugins/public-post-preview/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Dominik Schilling](https://wordpress.org/support/users/ocean90/)
 * (@ocean90)
 * WordPress Core Developer
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765881)
 * Does either your backend or frontend already has SSL enabled?
 *  Thread Starter [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765885)
 * The backend is SSL only, the frontend offers both SSL and non-SSL.
 * Unfortunately, WordPress forces you to use a hardcoded site URL and since the
   site is not SSL only yet (mostly due to caching issues), I have to use a hardcoded
   http:// URL.
 *  Plugin Author [Dominik Schilling](https://wordpress.org/support/users/ocean90/)
 * (@ocean90)
 * WordPress Core Developer
 * [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765886)
 * I see, you can use the `ppp_preview_link` filter to replace `http` with `https`
   in the preview link:
 *     ```
       function ds_https_preview_link( $link ) {
       	return str_replace( 'http:', 'https:', $link );
       }
       add_filter( 'ppp_preview_link', 'ds_https_preview_link' );
       ```
   
 *  Thread Starter [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765887)
 * Cool, that did it, thanks!
 *  Thread Starter [chmars](https://wordpress.org/support/users/chmars/)
 * (@chmars)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765888)
 * (It would be great if the plugin would detect https:// by default, however, the
   issue itself is resolved for me. Thanks for your timely response!)
 *  Plugin Author [Dominik Schilling](https://wordpress.org/support/users/ocean90/)
 * (@ocean90)
 * WordPress Core Developer
 * [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765889)
 * [@chmars](https://wordpress.org/support/users/chmars/) It does, but only if the
   home URL is https.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘SSL?’ is closed to new replies.

 * ![](https://ps.w.org/public-post-preview/assets/icon-256x256.jpg?rev=3190626)
 * [Public Post Preview](https://wordpress.org/plugins/public-post-preview/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/public-post-preview/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/public-post-preview/)
 * [Active Topics](https://wordpress.org/support/plugin/public-post-preview/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/public-post-preview/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/public-post-preview/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Dominik Schilling](https://wordpress.org/support/users/ocean90/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/ssl-22/#post-5765889)
 * Status: resolved