<html><head></head><body>
<?php
$destination = 'http://'.substr(getenv('PATH_INFO'), 1);
echo "<a href=$destination>$destination</a>";
?>
</body></html>

PHP始めたばっかりの俺でも10分で出来たぞ