Follow the redirects with cURL To get each step of our redirects. curl -s -L -D - http://www.my-website.com/ -o /dev/null -w '%{url_effective}'