Page 1 of 1
Recognize Redirect
Posted: Tue Aug 09, 2005 7:23 am
by Istvan
If want to Recognize redirection.
User type manually *.info into the browser and are redirected
to *.com
How can i regonize that the User came from *.info ???
Posted: Tue Aug 09, 2005 7:25 am
by Grim...
Depending on how they are redirected, this should work.
Code: Select all
<?php
$come_from = $HTTP_REFERER;
?>
Posted: Tue Aug 09, 2005 7:32 am
by Istvan
you mean $_SERVER['HTTP_REFERER']; ?
that doesn't work.
Posted: Tue Aug 09, 2005 8:01 am
by timvw
You can redirect them to: .com/?from=info
And then check in $_GET for the 'from' key.
Posted: Tue Aug 09, 2005 8:39 am
by anjanesh
If you own both the domain names and you're having the single location for both these domains then you use $_SERVER['HTTP_HOST'] to check for the domain and redirect accordingly.