URL-X redirects to URL-Y.
These URL's are external sites that I do not own.
How can php be used to output something like "URL-X redirects to URL-Y".
Example for clarification:
1. redirect.com/redirect.php redirects to example.com/somepage.php.
2. When giving php the url redirect.com/redirect.php as input,
I want php to output "redirect.com/redirect.php redirects to example.com/somepage.php".
Appreciate your answers