5

Situation

After creating, signing and deploying a new certificate for a custom domain we want to forward non-SSL connections to SSL and force our customers to use SSL.

Question

What is the best way to detect weather or not ssl is used to access a force.com site? What is the best way to forward customers from non ssl to ssl secured addresses?

1
  • 2
    Does the "Require Secure Connections (HTTPS)" checkbox on the Site configuration page not accomplish the redirection? Do you have a specific reason for logging how many users are hitting your site via HTTP?
    – JCD
    Jul 6, 2015 at 14:58

1 Answer 1

-1

If you're OK with a client-side solution, this one is pretty simple and has worked for me in the past. Some browser configurations may spawn a warning but I believe those are generally very old browsers.

1
  • your solution doesn't work at all. in general a 301 redirect is needed otherwise google will downrate your site. Jul 16, 2015 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.