Simple bash script to check domain redirects.
Download the file and make it executable (run the command chmod +x ./check-redirects.sh
at the folder that you donwloaded the file.
./check-redirects.sh -u -k UrlToTest.com
-u UrlToTest (mandatory) -k Default FALSE. Follow redirects with invalid SSL certificate. (not mandatory)