Friday, August 19, 2005 2:34 AM bart

At last I have a favicon.ico (h) + Holidays

To keep the number of nonsensical posts on its level, I decided to add a favicon.ico file to the root of my website and my blog website. You should see my favicon on your MSN Search Toolbar tabstrip (okay, it's not art with a big A, but at last I have such an icon up and running :-)).

How to do this? Just put a favicon.ico file in the root of your website folder and you're done. For the .Text blog pages you need to copy the favicon.ico file to the blogs root folder and you have change the web.config file in order to serve .ico files too, as follows:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <configSections>
      <section name="BlogConfigurationSettings" type="Dottext.Framework.Util.XmlSerializerSectionHandler, Dottext.Framework"/>
      <section name="HandlerConfiguration" type="Dottext.Framework.Util.XmlSerializerSectionHandler, Dottext.Framework"/>
   </configSections>

   <HandlerConfiguration  defaultPageLocation = "DTP.aspx" type = "Dottext.Common.UrlManager.HandlerConfiguration, Dottext.Common">
      <HttpHandlers>
         <HttpHandler pattern = "(\.config|\.asax|\.ascx|\.config|\.cs|\.csproj|\.vb|\.vbproj|\.webinfo|\.asp|\.licx|\.resx|\.resources)$" type = "Dottext.Framework.UrlManager.HttpForbiddenHandler, Dottext.Framework" handlerType = "Direct" />
         <HttpHandler pattern = "(\.gif|\.js|\.jpg|\.zip|\.jpeg|\.jpe|\.css|\.ico)$" type = "Dottext.Common.UrlManager.BlogStaticFileHandler, Dottext.Common" handlerType = "Direct" />
         ...

One last thing for now. I'll be on holidays till August 28th, so my blog won't be updated next week. See you soon and keep the feedback coming :-).

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Filed under:

Comments

No Comments