You could create a basic php file that includes a page according to an id number.
You could work this into a mySQL database, but here's the simple version:
Code:
<?
// Define URLS
$1 = "http://www.yourdomain.com/index.html";
$2 = "http://www.thisdomain.com";
$3 = "http://www.anotherdomain.co.uk";
// Include URL
$idno = $_POST['id'];
include("$$idno");
?>
Simply visit the php page, such as yourdomain.com/redirect.php?id=2
and the code gets the URL and displays it.
The reason for the ("$$idno") is because just using $idno will only display the number, $$idno will display the $ before the number, making $2, which then evaluates to the URL.
|