Home › Forums › Back End › [Solved] Redirect Pages ? › Re: [Solved] Redirect Pages ?
September 7, 2009 at 4:02 pm
#63553
Member
I found a solution…
1. Create a page redirect.php:
<?php
$url = $_GET;
header("Location: $url");
?>
2. Create a robots.txt file and write:
Disallow: /redirect.php?*
3.
In the page where you list all of the links you, write the following code:
<li>http://www.yourownpage.com/redirect.php?url=http://www.externallink1.com</li>
<li>http://www.yourownpage.com/redirect.php?url=http://www.externallink2.com</li>
<li>http://www.yourownpage.com/redirect.php?url=http://www.externallink3.com</li>
4. That’s all!