I need you to create a script that outputs all the redirects of a URL into an array
example:
$all= get_all_redirects($url);
foreach ($all as $r){
echo $r;
}
//output:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]