#4 IIS needs case insensitive match

closed
5
2014-08-27
2000-12-23
Dave Smart
No

Just a few ;) of the people that post pages to a site I'm responsible for don't pay much attention to upper/lower case filenaming. And the page works (on IIS), but awstats was looking case sensitive.

Here's the changes I made to resolve this (marked with #DS+)

Canonize and clean target URL and referrer URL

DS+ add 'i' on following line

$felter[6] =~ s/\/$DefaultFile$/\//i;
$felter[6] =~ s/\?.*//;
$felter[6] =~ s/\/\//\//g;

Check if page or not

$PageBool=1;

DS+ add 'i' on next line

foreach $cursor (@NotPageList) { if ($felter[6] =~ /$cursor$/i) { $PageBool=0; last; } }

Discussion

  • Logged In: YES
    user_id=96898

    I included the change for the "# Check if page or not" in
    AWStats 2.24.
    Thanks.