Dear all. I need help to configure Apache server to handle users requests using condition based on where he come from so i can redirect him . what i need if user came with from site start with xn--* redirect him to virtual host and if he came from any other link then go to another virtual host please help me with that. Thanks all,
$_SERVER['HTTP_REFERER'] The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modifyHTTP_REFERER as a feature. In short, it cannot really be trusted. as per http://php.net/manual/en/reserved.variables.server.php