Support » Plugin: WordPress HTTPS (SSL) » [Plugin: HTTPS for WordPress] Themes without get_header

  • Resolved Anthony


    The redirect actions run from the ‘get_header’ hook, which not all themes have.

    I got this working with my theme by changing that hook to use ‘template_redirect’ instead. This also makes the redirect happen earlier in the page-load process, which helps avoid conflict with other plugins.

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Ems


    Hmm, I wasn’t aware that not all themes used get_header. That would make sense if the hook was in wp_head(), because I know I’ve done some themes that don’t use wp_head().

    I think I had problems using template_redirect back when I was using a different method of redirecting other than wp_redirect (not sure why). I’ve since changed the plugin to use wp_redirect. I’ll be sure to get this into the next update. Thanks for the tip. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: HTTPS for WordPress] Themes without get_header’ is closed to new replies.