At the moment I have in my hosts file a custom link for facebook.com which leads to 127.0.0.1. I wanted this so when I go to facebook.com, it runs a php script on localhost which redirects to messenger.com (because I use messenger but not facebook) and I often type facebook.com from time to time when I mean to go to messenger.com, although when it runs through I get an error from chrome saying "NET::ERR_CERT_AUTHORITY_INVALID". I've installed the localhost certificate but it still won't allow access. Hopefully someone has an idea of how to fix this and allow it to go through.
Thanks!