Search

SSL by proxy problems (Network Solutions)

Hosts (such as Network Solutions) which insist on doing SSL by proxy will cause problems with WordPress and WooCommerce because they prevent PHP and WordPress’ is_ssl() function from detecting if the page is being served over HTTPS. This causes a redirect loop.

In Network Solutions own words:

Network Solutions® uses a proxy SSL this does not allow the use of server-side variables to detect HTTPS (secure).  All server-side coding will always detect HTTP (non-secure), and for programs that attempt to redirect non-secure connections (http://) to a secure connection (https://) will result in an infinite loop and server error after 30 seconds.

Network Solutions have been aware of this limitation since as far back as 2007 so don’t expect them to change this policy anytime soon.

There is no workaround for this within PHP (http://stackoverflow.com/questions/4686668/https-redirect-for-network-solutions). The only workaround is the following:

  1. Turn off the Force SSL settings within WooCommerce
  2. Use Javascript to redirect to SSL
Network solutions own solution is Javascript:
<script language="javascript">
if (document.location.protocol != "https:")
{
document.location.href = "https://subdomain.yourdomain.com" + document.location.pathname;
};
</script>

Please note we cannot officially support this non-standard setup.

Back to the top