Reputation: 9784
My copy of Safari refuses to open my website, example.com
.
Every time I try and visit http://example.com
Safari (not the server!) redirects me to https://example.com
, and immediately tells me:
"Safari can't open the page "https://example.com" because Safari can't connect to the server "example.com".
It seems like my copy of Safari has 'cached' the HTTPS redirect or something.
Here is what I have tried:
But still every time I instantly get the message. It appears in a matter of milliseconds making me assume it's cached somewhere.
When trying on a Guest account, the problem goes away. However, both my Mac at home and at work are affected, presumably because iCloud is syncing some kind of Safari cache file.
This thread here seems to hint it is to do with HSTS (as @rluta has thought), or alternatively to do with Strict-Transport-Security
headers being set. I have confirmed and no Strict-Transport-Security
headers are being set when the webpage is accessed.
If at all possible I really don't want to have to "reset" my copy of Safari as I use it for everything day to day. Any ideas?
Upvotes: 9
Views: 1266
Reputation: 308
I know it seems silly have you tried the obvious?
Upvotes: 1
Reputation: 269
Over at the Apple Support Forum, the following was reported to resolve the issue:
Hope that helps.
Upvotes: 4
Reputation: 6907
Since your site used to support HTTPS, you probably have a cached HSTS entry that directs Safari to always use HTTPS to connect to your site.
You can purge your HSTS settings in Safari like this:
Upvotes: 3