php - Multi-domain routing/redirecting -
i have 6 domain names. lets say:
www.abc.com www.abc1.com www.abc2.com www.abc3.com www.abc4.com www.abc5.com
but have 1 php hosting www.abc.com redirected pages www.abc.com
how can detect domain name visitor came from?
you can use
$_server['http_referer']
from doc:
'http_referer' address of page (if any) referred user agent current page. set user agent. not user agents set this, , provide ability modify http_referer feature. in short, cannot trusted
Comments
Post a Comment