If we have an URL say firsturl.com
is redirected to secondurl.com
to thirdurl.com
to fourthurl.com(Destination Url)
.
How can we display secondurl.com,thirdurl.com
and fourthurl.com
using JavaScript or PHP.
I am using PHP script curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
to find out the destination URL,I also want to display second URL and third URL.