Forum Moderators: phranque

Message Too Old, No Replies

custom 404 page not working at all!

         

RedScourge

9:19 am on Nov 13, 2004 (gmt 0)

10+ Year Member



ok, i have set it up in my httpd.conf like this:

ErrorDocument 404 /404.html

i also have a 401 error defined, it worked, but the 404 will not work. the file is >512bytes, so i dony know why im not getting my error message put there.

i see everywhere info about putting it into .htaccess but i dont wanna do that or all my <directory> information will be overwritten and thats stupid, i have AllowOverride Off anyways.

btw, i couldnt get the 401 error that DID work to access my CSS stylesheet that was in the same directory, does anyone know if something really screwy is going on here or what?

to summarize:

-i have a series of ErrorDocument settings defined
-the 404 will not work in IE, no matter how big i make the 404.html file, no matter how many times i clear my cache or reload the page
-the ErrorDocument settings that DO work are not properly accessing the CSS stylesheet that i defined for it, i had to implement it in the <body> tag, etc.

ncw164x

9:23 am on Nov 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try all lowercase, i know apache can be case sensitive sometimes

ErrorDocument 404 /404.html

errordocument 404 /404.html

RedScourge

9:31 am on Nov 13, 2004 (gmt 0)

10+ Year Member



i dont get why my 401 page would show properly but my 404 wouldnt though...makes no sense to me.

RedScourge

9:34 am on Nov 13, 2004 (gmt 0)

10+ Year Member



ok by some stupid fluke, it suddenly started working, but would anyone know why its not using my css file that i know for a fact is in the exact same directory as it? i access it like this <....href="style.css"> and that file is IN the same dir, can be accessed by my other pages, but its not working for the 404 or any of the ErrorDocument pages...i dont get it.

ncw164x

9:34 am on Nov 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



has lowercase worked then?

RedScourge

9:35 am on Nov 13, 2004 (gmt 0)

10+ Year Member



nevermind...omg this computer is making me look like an even bigger idiot than i am...sorry to waste everyones time.