From: eldy <> Date: Sun, 22 Apr 2001 17:17:52 +0000 (+0000) Subject: In referer report, urls http://www.site.com and http://www.site.com/ are reported... X-Git-Tag: AWSTATS_1_0~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dac3bf0037f9080a04972a8ae75d10d6faf02da;p=thirdparty%2FAWStats.git In referer report, urls http://www.site.com and http://www.site.com/ are reported as same referer --- diff --git a/awstats.pl b/awstats.pl index 7fa894c6..1fcf981c 100644 --- a/awstats.pl +++ b/awstats.pl @@ -61,7 +61,7 @@ $word, $yearcon, $yearfile, $yearmonthfile, $yeartoprocess) = (); @sortsearchwords = @sortsereferrals = @sortsider404 = @sortsiders = @sortunknownip = @sortunknownreferer = @sortunknownrefererbrowser = @wordlist = (); -$VERSION="2.24 (build 28)"; +$VERSION="2.24 (build 29)"; $Lang=0; # Default value @@ -213,7 +213,7 @@ $BarImageHorizontal_k = "barrehk.png"; "konqueror","Konqueror", "linemodebrowser","W3C Line Mode Browser", "lotus-notes","Lotus Notes web client", -"macweb","MacWeb", # +"macweb","MacWeb", "ncsa_mosaic","NCSA Mosaic", "netpositive","NetPositive", "nutscrape", "Nutscrape", @@ -2316,8 +2316,8 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = $_os_h{$TmpHashOS{$UserAgent}}++; } - # Analyze: Referrer - #------------------ + # Analyze: Referer + #----------------- $found=0; # Direct ? @@ -2404,6 +2404,7 @@ if (($YearRequired == $nowyear) && ($MonthRequired eq "year" || $MonthRequired = if (!$found) { # This hit came from a site other than a search engine $_from_h[3]++; + if ($felter[10] =~ /http:\/\/[^\/]*\/$/) { $felter[10] =~ s/\/$//; } # To make htpp://www.mysite.com and http://www.mysite.com/ as same referer $_pagesrefs_h{$felter[10]}++; $found=1; }