Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- correct format for .php&redirect=
July 30, 2006, 8:00 am
rate this thread
haven't been able to get a redirect to work.
The original affiliate link looks like this:
Rather than use this link however I am wanting to redirect to specific
product pages. A product page link would look like this:
In the past I have been able to easily set up a redirect link simply by
combining the links with &redirect= such as:
I understand this is probably not correct for PHP. I did play around
with it a lot to no avail, including the use of URL encoding. Thanks
in advance to anyone with a suggestion. :)
Re: correct format for .php&redirect=
It's hard to say much without being able to see the relavent portions
from your index.php file, but usually, you have to do something like
header('Location: '.$_GET['redirect']) and then exit shortly there
after. $_GET['redirect'] should, of course, be checked against a white
list, or at the very least, for characters like "\r" and "\n", to
protect against http response splitting.