0

Just been setting up HSTS on an Apache vHost (it is a virtualmin box) and have that working, however I am experiencing strange behavior when trying to force a call to https www rather than it redirecting to the https non www.

If I call the http www version then HSTS does its job just fine and gives me the HTTPS, non www site. However manually calling HTTPS WWW throws me a certificate error stating the name on the cert does not match the calling URL.... which I know is because I don't have www on the cert.

I have tried the usual 301 redirect in the vhost but I can still get to https www. rather than being redirected to https non www.

Any ideas folks?

Tom

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
tomstephens89
  • 981
  • 1
  • 11
  • 23

0 Answers0