Hi,
I hope someone can help me out with this...
Is this possible?
I have a giant links list, which links like this
example 1 - which works
<a href="redirect.php?link=http://www.domain1.com/">Visit Domain 1</a>
example 2 - which does not work (notice two ?'s in URL)
<a href="redirect.php?link=http://www.domain2.com/?a=23&b=54&g=53">Visit Domain 2</a>
Here is what redirect.php looks like:
// redirect.php
// increments counter and redirects to correct link
// ... some code to increment hit counter
if (isset($link)) {
header("Location: $link");
exit;
} else {
header("Location: http://www.defaultdomain.com/");
exit;
}
Example 1 works and correctly redirects to
http://www.domain1.com/
Example 2 redirects, but only passes along the first variable a=23
http://www.domain2.com/?a=23
I would be very grateful if someone knows how to pass along the other variables. Is it possible to have:
header("Location: http://www.domain2.com/?a=23&b=54&g=53");
Thanks in advance.