Curl – Follow and output redirect for debugging .htaccess

Use cases

In case you need to debug your browser’s message regarding “TOO MANY REDIRECTS”

curl -sSL -D - <url> | grep Location