[drupal-devel] ShortStat for Drupal

Paul Byrne paul at leafish.co.uk
Fri Jan 21 15:04:15 UTC 2005


Paul Byrne wrote:

> So its got to be down to referrer, as entering the URL into the address 
> bar takes me to the correct page. However, how does drupal pick up the 
> link? Something must be going on client-side, as far as I can see.

Stupid, stupid, stupid... never thought to check the ShortStat script 
itself...

// Redirect to homepage if linked directly
if (!empty($_SERVER['HTTP_REFERER'])) {
   header("Location:http://$_SERVER[SERVER_NAME]");
}

(in index.php).

Sorry for wasting everyone's time... ;)

P

-- 
paul byrne <paul at leafish.co.uk>
web monkey <http://www.leafish.co.uk/>



More information about the drupal-devel mailing list