1

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!

4
  • If your certificate is for “localhost”, it isn’t for “facebook.com” or “www.facebook.com”.
    – Daniel B
    Commented Nov 20, 2016 at 11:50
  • Then how would I go about getting it to allow access, so it can redirect to localhost?
    – Sasha
    Commented Nov 20, 2016 at 11:53
  • The easiest way is not to do all that but instead write a Userscript for Greasemonkey/Tampermonkey.
    – Daniel B
    Commented Nov 20, 2016 at 11:54
  • @DanielB It works this way, takes a while for the script to redirect but it's better than having to retype the url. Thanks :)
    – Sasha
    Commented Nov 20, 2016 at 12:47

0

You must log in to answer this question.

Browse other questions tagged .