WordPress HTTPS (SSL)
[resolved] [Plugin: HTTPS for WordPress] Themes without get_header (2 posts)

  1. Anthony
    Posted 5 years ago #

    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.


  2. Mike Ems
    Plugin Author

    Posted 5 years ago #

    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. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress HTTPS (SSL)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic