Tags:
create new tag
view all tags

Question

I put a favicon into our TWiki implementation on Sourceforge and it is appearing in our WebStatistics page. Neat but not entirely intended. Is it possible to fix this?

By the by, I modified one of the template files to have <link rel="SHORTCUT ICON" href="favicon.ico"> in order for the favicon to work for Mozilla users.

  • TWiki version: 20011201
  • Perl version: v5.6.1
  • Web server & version: Apache, whatever is on Sourceforge
  • Server OS: Linux
  • Web browser & version: All of them
  • Client OS: All of them

-- LingLo - 18 Dec 2002

Answer

Where did you place your favicon.ico file? I have one on a TWiki site but it doesn't appear in the statistics, and in fact I can't work out how it could, as it would be served by Apache rather than by the TWiki CGI scripts, which are the only ones that write to the log*.txt files used for WebStatistics. Try relocating the favicon.ico to the /pub directory, with a suitable /twiki/pub/favicon.ico type URL.

It could also be due to the base href included in the HTML files - using "/favicon.ico" (i.e. an absolute URL) should fix this - otherwise it's possible that the favicon.ico is interpreted as a topic name perhaps. Perhaps SourceForge is doing something odd with redirects or Apache URL rewriting, as I found the back button didn't work too well when looking for your /favicon.ico file. Rather odd...

-- RichardDonkin - 22 Dec 2002

Response

Turns out it's the href="favicon.ico" bit. Shoulda been "/favicon.ico" as the browser ends up looking for favicon.ico files in the same level as the url which leads to the TWiki receiving /twiki/view/favicon.ico requests. Doh! Thank you for your help!

-- LingLo - 26 Dec 2002

Glad it worked - you might like to have a look at the upcoming InternationalisationEnhancements, which enable use of Danish accented characters in WikiWords, as well as other things such as basic JapaneseAndChineseSupport.

-- RichardDonkin - 27 Dec 2002

It looks like that the statistics script needs to be updated. It should not include topics that do not exist. Here is a sample entry from TWiki.org:

| 18 Dec 2002 - 01:00 | Main.TWikiGuest | view | Support.favicon.ico |  (not exist) | 213.208.105.215 |

The script should ignore lines that have a (not exist) flag. BTW, there are similar entries if a user assumes that the "Go" box is a search box:

| 01 Dec 2002 - 19:51 | Main.TWikiGuest | view | Sandbox.jboss |  (not exist) | 216.136.171.252 |

-- PeterThoeny - 28 Dec 2002

Now fixed in TWikiAlphaRelease, see CVS:bin/statistics - this also helps prevent accesses to topics with I18N names via UTF8-encoded URLs (not yet supported by TWiki even in alpha) from creating such statistics entries (see InternationalisationEnhancements to avoid using such URLs).

-- RichardDonkin - 31 Dec 2002

And at TWiki.org.

-- PeterThoeny - 31 Dec 2002

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2002-12-31 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.