+ Reply to Thread
Results 1 to 8 of 8

Thread: Setting favicon on error pages

  1. #1
    lydia09 is offline x10Hosting Member lydia09 is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    62

    Setting favicon on error pages

    Hi everybody,
    Does anyone know how to set a favicon on a 404 and 403 error page? I can do it successfully with all the other pages on my site, but not the error pages, and I just want it to look consistent. I use this code in the header of my pages:

    Code:
        <HEAD>
             <LINK
                HREF="http://lydiascarletswan.x10hosting.c...es/favicon.ico"
                REL="shortcut icon"
                TYPE="image/x-icon"
            />
        </HEAD>
    This code works fine on all my other pages, but for some reason with the error pages, no favicon. I'm using internet explorer, if that helps. Can anyone give me a hand, please? I'd really appreciate it.

    Thanks,
    Lydia

  2. #2
    Danielx386 is offline x10 Elder Danielx386 is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    698

    Re: Setting favicon on error pages

    This may sound silly, but I just google, and I found this page: http://www.davesite.com/webstation/html/favicon.shtml Is this any help to you?

    Daniel

  3. #3
    Danielx386 is offline x10 Elder Danielx386 is an unknown quantity at this point
    Join Date
    Oct 2009
    Location
    Australia
    Posts
    698

    Re: Setting favicon on error pages

    Also you could create your own 404 page as well: http://www.thesitewizard.com/archive/custom404.shtml

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: Setting favicon on error pages

    It works for your site in Firefox and Chrome, but not in IE8. Might be a MS "feature" in IE8
    Nothing is always absolutely so.

  5. #5
    lydia09 is offline x10Hosting Member lydia09 is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    62

    Re: Setting favicon on error pages

    Thanks everybody,
    I appreciate the favicon and custom error page references, but I've done both of those already. My issue is only when I go to an error page, that the favicon doesn't show up.

    So, just to be clear,
    The page http://lydiascarletswan.x10hosting.com/blah.html does not exist on my site. If I try to go to this page, my custom 404 page shows up. So far, so good. The problem is that my favicon doesn't show up along with the 404 error page.

    descalzo, do you mean that the favicon itself works on existing pages in the browsers that you mentioned, or do you mean that the favicon works on existing pages and on the error pages?

    I have IE8 too, something tells me I should switch to Firefox.

    Thanks,
    Lydia

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: Setting favicon on error pages

    I meant that the favicon worked on the Error pages when viewed in Firefox and Chrome.

    IE8 came with my laptop, and use it for comparison to other browsers.
    I downloaded Firefox and use it most of the time.
    Just downloaded Chrome to see how my pages display on it.
    Nothing is always absolutely so.

  7. #7
    lydia09 is offline x10Hosting Member lydia09 is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    62

    Re: Setting favicon on error pages

    Thanks descalzo,
    Aha, now I understand. That's good to know that the favicon works on those other browsers; you must be right that it's an IE8 "feature". Pity it's a newer browser. Well, now that means I must embark on a voyage to figure out favicon display in IE8. Wish me luck!
    Thanks,
    Lydia

  8. #8
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Setting favicon on error pages

    What might help is putting your favicon at http://lydiascarletswan.x10hosting.com/favicon.ico When there is no favicon specified in the head section, this would be where *any* browser *should* look for it.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

+ Reply to Thread

Similar Threads

  1. Error when setting up IPB forum
    By lateralus138 in forum Free Hosting
    Replies: 2
    Last Post: 01-22-2010, 08:11 AM
  2. Help setting up redirect for "not found" pages
    By granger99 in forum Programming Help
    Replies: 14
    Last Post: 01-16-2010, 11:11 PM
  3. Email Error with Setting up Outlook
    By euromix69 in forum Free Hosting
    Replies: 0
    Last Post: 01-14-2010, 06:54 AM
  4. favicon error
    By BigEmmaFanz in forum Free Hosting
    Replies: 4
    Last Post: 11-27-2005, 10:17 PM
  5. trouble with setting up web pages
    By gnarkill in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 07-12-2005, 10:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers