Simon Veteran Posted August 15, 2005 Veteran Share Posted August 15, 2005 Can I create a 404 not found page for Firefox, using html? I want to make a nice looking error page that can display some useful links, and I want it to look good, too. I can make the page, but I don't know how to make Firefox recognize it. Link to comment Share on other sites More sharing options...
Garry Posted August 15, 2005 Share Posted August 15, 2005 Error Documents are served by the Webserver, not the browser (except for those annoying types when Internet Explorer decides to show its own, but that can be turned off). You'd need to create a .htaccess file in your web root directory containing something like: ErrorDocument 404 /path/to/404/page.htm So there ya are. :) Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 Actually, a program called FireTune, which I'm using, creates a page like that. But it uses xml, and I want to use HTML. Plus, I don't know where it keeps the page. Link to comment Share on other sites More sharing options...
Dazzeh Posted August 15, 2005 Share Posted August 15, 2005 ah you want this to replace the "error" popup in firefox, i think garry had the wrong idead there thinking about it on a server.... Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 You got it, Dazzeh Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 I found an entry for it in about:config called browser.xul.error_pages.enabled. Link to comment Share on other sites More sharing options...
kernatch Posted August 15, 2005 Share Posted August 15, 2005 on Deer Park Alpha 2, they've done away with the popup and you get a 404 type page now. edit: heh, when i clicked the thumbnail, i thought i got an error. Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 Thats what you get by entering that string i gave in about;config. Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 I have designed the page I want to use, if anyone wants to see it, download the zip file. I know it isn't very good yet, I did design it in 10 seconds though :) new404page.zip Link to comment Share on other sites More sharing options...
supernova_00 Posted August 15, 2005 Share Posted August 15, 2005 (edited) on Deer Park Alpha 2, they've done away with the popup and you get a 404 type page now.edit: heh, when i clicked the thumbnail, i thought i got an error. 586380173[/snapback] the page is completly different then that now. nice css scripted page, favicon is still being worked on. Edited August 15, 2005 by supernova_00 Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 Is that in a nightly build of Deer Park? I haven't figured out how to get them yet, I'm still stuck with the crappy one. Link to comment Share on other sites More sharing options...
Causas Posted August 15, 2005 Share Posted August 15, 2005 The 404 page in Firefox is part of the google 'summer of code' bounty list I didn't think they would have it ready so soon though Link to comment Share on other sites More sharing options...
Simon Veteran Posted August 15, 2005 Author Veteran Share Posted August 15, 2005 I don't think Firefox is part of the "summer of code". I didn't see anything on Google or Mozilla. Link to comment Share on other sites More sharing options...
supernova_00 Posted August 17, 2005 Share Posted August 17, 2005 yes that has been in the nightlys for about two weeks if not three now. Link to comment Share on other sites More sharing options...
Recommended Posts