So...I moved my hosting to a new company. No big, right? Except, I had an SSL certificate that implemented HSTS (HTTP Strict Transport Security) on my old server. When I tried to visit the moved content on the new server, all of a sudden, I was getting error messages on every page load and only Opera would actually allow me to connect.
Once I figured out what was going on (that took a while...I couldn't figure out for the life of me why I was being forced to a secure connection when I prefixed the URL in my browser's address bar with http:// - I literally spent hours with .htaccess and vhost.conf files having forgotten that HSTS had previously been implemented and the security cert was tied to the old company's IP) it was pretty simple, although ridiculously hard to find a resolution to, so I figured I'd blog it and soak up what SEO was to be had
Firefox 26: How to fix Error code: ssl_error_bad_cert_domain
If you see "I understand the risks", follow these instructions. Otherwise:
- Close all tabs open with the site.
- Clear your history.
- In the address bar, type "about:permissions".
- Search for and click on the site.
- Click "Forget About This Site".
Chrome, Opera: Cannot connect to the real <domain name>.
- In the address bar, type "chrome://net-internals/#hsts".
- Type the domain name in the text field below "Delete domain".
- Click the "Delete" button.
- Type the domain name in the text field below "Query domain".
- Click the "Query" button.
- Your response should be "Not found".
Safari: Clear the HSTS cache.
- Close Safari.
- Delete the ~/Library/Cookies/HSTS.plist file.
- Reopen Safari.