need help about ?id=

there is no help, this is some kind of black magic, beware
 
its a php script, i found it somewhere before but i forgot it now. its like 8 months ago... i asked here because there are alot of php expert here. maybe they can help :)
 
You cannot cause URL redirect simply by having what you're calling a "query string" in the URL. If there is redirecting happening, that is being handled by the server itself.

What is actually happening is as follows:

1. User visits URL with the query string.
2. Server acquires the query string (id=XAJDJAXSD) from the URL that the user visited via GET http verb, and operates on it (maybe database search or simply generating a redirect url)
3. Generates a redirect url
4. Returns a server response by redirecting the user to the new URL.

So if you're using PHP. There should be a way to generate a link from the given URL query, try Stackoverflow for programming help.

Best of luck.
 
We use to do something like this to protect affiliate companies from snooping our landing pages and redirects because a lot of them don't like you to redirect.

So we'd use a page like www.whatever.com/landing/ as a dummy landing page for people trying to snoop our page with some legitimate landing page content. Then we would use something like this for actually redirecting customers www.whatever.com/landing/?i=asdf

In the index.php of the www.whatever.com/landing/ we have something like this

if(isset($_GET) && $_GET='asdf')){
echo '<meta http-equiv="refresh" content="0;URL='http://desiredestination.com/'" />'
}

Another option for using the ?i= is for tracking. You could have a variety of different traffic source and track where they are coming from. Just be careful with referrers if you are directly straight to an affiliate link. There are ways to clean referrers as well ;)
 
Theres serveral ways to do this, most commonly the ids and redirects would be stored inside a database however I will show you a really basic example of this which would require you to add each redirect manually.

As i am a new account i cant post any links but posted as best i can within the limitations, hope this makes sense.

example link
Code:
YOURSITE/?id=google


Code:
if (empty($_GET['id'])){
exit;
}elseif ($_GET['id'] == "google"){
header("Location: REDIRECT LINK INCLUDING HTTP");
}
 
Back
Top