php -s server set domain code example Example: how to detect intial domain using php\ $_SERVER['REQUEST_URI']