$REQUEST = array(); $REQUEST = explode("?",$_SERVER['REQUEST_URI']); $CANONICAL = 'http://'.$_SERVER['HTTP_HOST'].$REQUEST[0]; ?>