Title: [Plugin: WordPress HTTPS (SSL)] Barracuda load balancer redirect problem
Last modified: August 20, 2016

---

# [Plugin: WordPress HTTPS (SSL)] Barracuda load balancer redirect problem

 *  [markwilson66](https://wordpress.org/support/users/markwilson66/)
 * (@markwilson66)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-barracuda-load-balancer-redirect-problem/)
 * If you use this plug-in behind a Barracuda load balancer with SSL certificate
   offloading, you will get a number of redirects before it eventually fails.
    You
   will need to modify the is_ssl() function to look for the existence of the HTTP_FRONT_END_HTTPS
   server variable. It will be set to ‘On’ if the Barracuda does the SSL decryption.
 * The code below seems to work for me. If you have another type of load balancer,
   the server variable may be something else. Look at
    [http://mydomain.com/phpinfo.php](http://mydomain.com/phpinfo.php)
   and [https://mydomain.com/phpinfo.php](https://mydomain.com/phpinfo.php) to see
   the difference in PHP variables between the SSL and non-SSL requests.
 *  /**
    * Checks if the current page is SSL * * [@param](https://wordpress.org/support/users/param/)
   none * [@return](https://wordpress.org/support/users/return/) void */ function
   is_ssl() { if ( $this->shared_ssl == 1 && strpos($this->https_url, $_SERVER[‘
   HTTP_X_FORWARDED_SERVER’]) !== false ) { return true; }
 * ** if ( isset($_SERVER[‘HTTP_FRONT_END_HTTPS’]) && strtolower($_SERVER[‘HTTP_FRONT_END_HTTPS’])
   == ‘on’ ) {
    return true; }
 *  return is_ssl();
    }
 * [http://wordpress.org/extend/plugins/wordpress-https/](http://wordpress.org/extend/plugins/wordpress-https/)

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

 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-barracuda-load-balancer-redirect-problem/#post-2653688)
 * Interesting. In the next version I’ve added some sorcery to use JavaScript and
   cookies to see if the site is serving up HTTPS if on the PHP side it thinks that
   the page is HTTP. It’s pretty neat, really. If people still have issues after
   I push out the next version, I may expand on this and allow users to define custom
   rules for is_ssl().
 * Thanks,
    Mike
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-barracuda-load-balancer-redirect-problem/#post-2654008)
 * I just pushed out version 3.0 which should resolve this. Please try updating 
   and let me know if you need any help.
 * Sorry for the late response. I have not had time to support the plugin for a 
   while now. Since I just pushed out 3.0, I’ll be keeping an eye on the support
   forums to fix any bugs that arise.
 * Thanks,
    Mike

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

The topic ‘[Plugin: WordPress HTTPS (SSL)] Barracuda load balancer redirect problem’
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/)

 * 2 replies
 * 2 participants
 * Last reply from: [mvied](https://wordpress.org/support/users/mvied/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-barracuda-load-balancer-redirect-problem/#post-2654008)
 * Status: not resolved