Redirect to https



  • is there a way to redirect a specific site to https even if the clients behind pfsense requested the http edition, there is a firefox plugin "SSL everywhere" that does that for specific sites, I would like to have that on my installation, like http://www.wikipedia.org forced to https://www.wikipedia.org .
    PS: I use bind for DNS and squid for proxy.

    Thank you



  • If you use a proxy and you proxy http and https traffic you can try with the "rewrite" rules and rewrite http sites to https sites. This "could" work. The problem is that proxying httpS sites you cannot use transparent proxy.



  • @Nachtfalke:

    If you use a proxy and you proxy http and https traffic you can try with the "rewrite" rules and rewrite http sites to https sites. This "could" work. The problem is that proxying httpS sites you cannot use transparent proxy.

    I tried to do so, but didn't have luck in forwarding to https, and I couldn't understand why the https should be proxied since the request were http, squid reads the http request-> rewrites into https -> and now the browser handles the request directly, like when the site force you to be forwarded to the https edition "like when loging in", anyhow can anyone think of another way? thank you.



  • Are you hosting the sites yourself? Or are they public websites?


  • LAYER 8 Global Moderator

    you do understand that NOT all sites are available via https - so sounds like what your wanting to do would break most of the internet for your users.  Any site that is not https would not work.



  • LOL


Log in to reply