Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom 404 Page not Available screen

    I am tired of the same old 404"This Page is not Available"screen so I made my own. How do I get the Explorer to pull up my page instead of the default 404, when I'm online and get a bad link?

  • #2
    New Coder
    Join Date
    Aug 2002
    Location
    WA
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom 404...

    Create the page you would like to have come up first, name it 404.htm and then place it in your root directory (where your index file is located).
    Next, create an .htaccess file using notepad with the line:
    ErrorDocument 404 /404.htm
    When you name it, name it with the extention only ( .htaccess ) and save it as "all files" not as a text file or a word file.
    Place this file in your root directory as well.
    That should do it
    Here's a good thread to read:
    http://www.codingforums.com/showthre...light=htaccess
    Here's a good tutorial to read:
    http://javascriptkit.com/howto/htaccess2.shtml
    Have a GREAT Ariel day!!
    Mike
    LittleAriel.com

  • #3
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    malform, do you mean on your own web site?
    or do you mean, just your own for personal browsing.

  • #4
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This 404 "Page not Available" is for my own personal browsing. I don't have a web site. The help given was a little over my head. I don't know programming outside of HTML.

    I make Desktop Themes and I thought this would top off a good theme. I have already made the HTML for my custom 404. It simply displays a JPEG image I created with Paint Shop:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY bgcolor="black"> <center> <img src="my404.jpg">
    </BODY>
    </HTML>

  • #5
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by malform
    This 404 "Page not Available" is for my own personal browsing. I don't have a web site. The help given was a little over my head. I don't know programming outside of HTML.

    I make Desktop Themes and I thought this would top off a good theme. I have already made the HTML for my custom 404. It simply displays a JPEG image I created with Paint Shop:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY bgcolor="black"> <center> <img src="my404.jpg">
    </BODY>
    </HTML>
    I don't believe there is any way of doing that, at least there are not options to do that via the browser.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #6
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If I knew the name of the file that is the windows 404 webpage, couldn't I locate it and replace it with my file, using the same filename?

  • #7
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I believe its stored inside a DLL thats in the windows directory.
    OracleGuy

  • #8
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    like:
    C:\WINDOWS\SYSTEM\SHDOCLC.DLL/http_404.htm#website would be here

  • #9
    Banned
    Join Date
    Mar 2003
    Posts
    224
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If you want to screw up your comp :-}

    just open it with mpqviewer and extract then edit, import. I advise you not do this unless you are REALLY skilled.

  • #10
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If someone wrote a program that would do this for you, they could probably sell it on the 'net.

    Maybe it could be attached to Desktop Themes somehow?

  • #11
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think someone did.

    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!

  • #12
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bah! i wasnt going to mention THAT program

  • #13
    Regular Coder
    Join Date
    Jan 2003
    Posts
    680
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've only dared to use it to change program icons and such.
    (o<
    //\ &nbsp; &nbsp; &nbsp; =^..^=
    &nbsp; &nbsp; $!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •