curl -I http://$DOMAIN | grep -i location curl -s https://$DOMAIN | grep -i canonical