Revision history for FaviconDotIco


Revision [23064]

Last edited on 2016-05-20 07:38:45 by MinusF [Replaces old-style internal links with new pipe-split links.]
Additions:
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt | robots.txt]]?
Deletions:
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]]?


Revision [18704]

Edited on 2008-01-28 00:12:19 by MinusF [Modified links pointing to docs server]

No Differences

Revision [12241]

Edited on 2005-12-12 23:21:50 by MinusF [Modified links pointing to docs server]
Additions:
=====Favicon=====
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]]?
I think it's MicroSoft who used favicon.ico the first.
favicon.ico is an icon file, normally placed at your root web directory, ie in the case of this wikka site, the url pointed to by ""http://wikka.jsnx.com/favicon.ico"". It is meant to personnalize your site, and when the visitor add your site to his favourites, his browser use the icon favicon.ico, instead of the default. favicon.ico should be also displayed at the address bar. On some browsers, you need to specify this statement in every page :
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

(Try this with konqueror, Linux).

My problem with wikka 1.1.3 is that when the browser tries to load the file favicon.ico, it get the file ""http://yourhost/wakka.php?wakka=favicon.ico""

To resolve this, I insert these lines in the top of wakka.php :
%%(php)<?
if (($_REQUEST['wakka'] == 'favicon.ico') || ($_REQUEST['wakka'] == 'robots.txt'))
{
if ($_REQUEST['wakka'] == 'favicon.ico')
{
header("Content-Type: images/x-icon");
include ('images/' . $_REQUEST['wakka']);
}
if ($_REQUEST['wakka'] == 'robots.txt')
{
header("Content-Type: text/plain");
include ($_REQUEST['wakka']);
}
die();
}
?>%%


(this is an overkill IMHO, see an easier way at RobotsDotTxt, --MinusF)
Deletions:
=====Favicon=====
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]]?
I think it's MicroSoft who used favicon.ico the first.
favicon.ico is an icon file, normally placed at your root web directory, ie in the case of this wikka site, the url pointed to by ""http://wikka.jsnx.com/favicon.ico"". It is meant to personnalize your site, and when the visitor add your site to his favourites, his browser use the icon favicon.ico, instead of the default. favicon.ico should be also displayed at the address bar. On some browsers, you need to specify this statement in every page :
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

(Try this with konqueror, Linux).

My problem with wikka 1.1.3 is that when the browser tries to load the file favicon.ico, it get the file ""http://yourhost/wakka.php?wakka=favicon.ico""

To resolve this, I insert these lines in the top of wakka.php :
%%(php)<?
if (($_REQUEST['wakka'] == 'favicon.ico') || ($_REQUEST['wakka'] == 'robots.txt'))
{
if ($_REQUEST['wakka'] == 'favicon.ico')
{
header("Content-Type: images/x-icon");
include ('images/' . $_REQUEST['wakka']);
}
if ($_REQUEST['wakka'] == 'robots.txt')
{
header("Content-Type: text/plain");
include ($_REQUEST['wakka']);
}
die();
}
?>%%



Revision [1991]

Edited on 2004-10-25 18:57:20 by NilsLindenberg [header]
Additions:
=====Favicon=====
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]]?
I think it's MicroSoft who used favicon.ico the first.
favicon.ico is an icon file, normally placed at your root web directory, ie in the case of this wikka site, the url pointed to by ""http://wikka.jsnx.com/favicon.ico"". It is meant to personnalize your site, and when the visitor add your site to his favourites, his browser use the icon favicon.ico, instead of the default. favicon.ico should be also displayed at the address bar. On some browsers, you need to specify this statement in every page :
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

(Try this with konqueror, Linux).

My problem with wikka 1.1.3 is that when the browser tries to load the file favicon.ico, it get the file ""http://yourhost/wakka.php?wakka=favicon.ico""

To resolve this, I insert these lines in the top of wakka.php :
%%(php)<?
if (($_REQUEST['wakka'] == 'favicon.ico') || ($_REQUEST['wakka'] == 'robots.txt'))
{
if ($_REQUEST['wakka'] == 'favicon.ico')
{
header("Content-Type: images/x-icon");
include ('images/' . $_REQUEST['wakka']);
}
if ($_REQUEST['wakka'] == 'robots.txt')
{
header("Content-Type: text/plain");
include ($_REQUEST['wakka']);
}
die();
}
?>%%

Deletions:
Did you ever heard about favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]]?
I think it's MicroSoft who used favicon.ico the first.
favicon.ico is an icon file, normally placed at your root web directory, ie in the case of this wikka site, the url pointed to by ""http://wikka.jsnx.com/favicon.ico"". It is meant to personnalize your site, and when the visitor add your site to his favourites, his browser use the icon favicon.ico, instead of the default. favicon.ico should be also displayed at the address bar. On some browsers, you need to specify this statement in every page :
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">

(Try this with konqueror, Linux).

My problem with wikka 1.1.3 is that when the browser tries to load the file favicon.ico, it get the file ""http://yourhost/wakka.php?wakka=favicon.ico""

To resolve this, I insert these lines in the top of wakka.php :
%%(php)<?
if (($_REQUEST['wakka'] == 'favicon.ico') || ($_REQUEST['wakka'] == 'robots.txt'))
{
if ($_REQUEST['wakka'] == 'favicon.ico')
{
header("Content-Type: images/x-icon");
include ('images/' . $_REQUEST['wakka']);
}
if ($_REQUEST['wakka'] == 'robots.txt')
{
header("Content-Type: text/plain");
include ($_REQUEST['wakka']);
}
die();
}
?>%%


Revision [697]

Edited on 2004-07-02 11:46:27 by DotMG [Getting correct favicon.ico and robots.txt]
Additions:
To resolve this, I insert these lines in the top of wakka.php :
%%(php)<?
if (($_REQUEST['wakka'] == 'favicon.ico') || ($_REQUEST['wakka'] == 'robots.txt'))
{
if ($_REQUEST['wakka'] == 'favicon.ico')
{
header("Content-Type: images/x-icon");
include ('images/' . $_REQUEST['wakka']);
}
if ($_REQUEST['wakka'] == 'robots.txt')
{
header("Content-Type: text/plain");
include ($_REQUEST['wakka']);
}
die();
}
?>%%
Again, we can improve this by testing if $_REQUEST['wakka'] is terminated by .ico or .txt, and use file_exists before include().
Deletions:
I think we should change RewriteRule in ./.htaccess
RewriteRule ^(.*)$ wakka.php?wakka=$1 [QSA,L]
to exclude files favicon.ico and [[http://wikka.jsnx.com/RobotsDotTxt robots.txt]].


Revision [687]

The oldest known version of this page was created on 2004-06-22 12:43:35 by DotMG [Getting correct favicon.ico and robots.txt]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki