<div dir="ltr">Hi all,<div><br></div><div>I'm writing a small bash program script to redirect any request to say <a href="http://www.google.com">www.google.com</a>. This script is able to redirect any http script to <a href="http://google.com">google.com</a>, but not https requests. </div><div>I read the documentation</div><div><a href="http://wiki.squid-cache.org/Features/HTTPS">http://wiki.squid-cache.org/Features/HTTPS</a><br></div><div>But this seem quite complex for my task. Basically I just want to redirect any domain, without looking into the full path. Knowing the domain name should not be counted as violation or interception of https I hope</div><div><br></div><div>Here's the script which works with http but not https:</div><div><br></div><div>"</div><div>#!/bin/bash</div><div>while true;</div><div>do</div><div>  read input;</div><div>  if [[ "$old_url" =~ ".<a href="http://google.com">google.com</a>" ]]; then</div><div>    echo "ERB"</div><div>  else</div><div>    echo "echo '303:<a href="https://www.google.com">https://www.google.com</a>"</div><div>  fi</div><div>done</div><div>"</div><div><br></div><div>Any ideas how to solve that?</div><div><br></div><div>Regards and thanks</div></div>