QUOTE (johnwilliams @ May 25 2009, 12:21 PM)

Using a subdomain for ecommerce site hosted at NS and having trouble with Redirect Loop errors in FireFox and Safari (IE too)
When SSL is enabled, and the visitor begins the checkout process (calling checkout.php) the error occurs. If SSL is disabled, the store works fine - but need SSL for ecommerce security.
https://store.hotwire-digital.com/Shopping cart is by Interspire; from their knowledgebase:
Is it possible a symlink is missing or mis-configured?
Your hosting package has one set of files for HTTP and HTTPS; This knowledge base article is not relevant in your case.
Also, the HTTP sessions are recognized in HTTPS as well; so that is not the cause of the issue either.
Our proxy SSL doesn't allow server-side variables to detect HTTPS (secure). All server-side coding will always detect HTTP (non-secure), and for programs like your shopping cart that attempt to redirect non-secure connections (http://) to a secure connection (https://) will result in an infinite loop and eventually error out.
The only ways around this is to either
- Assume the connection is secure by making all the links to the sensitive pages https, OR
- Use a client-side program (like javascript) to detect if it's secure and redirect if it's not. The coding below will do just that. Just add it into the HTML of any sensitive pages.
CODE
<script language="javascript">
if (document.location.protocol != "https:")
{
document.location.href = "https://store.hotwire-digital.com" + document.location.pathname;
};
</script>
In your case, I would ask your shopping cart provider, Interspire, how to put this code on their cart or if they can do it for you.