logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Custom ErrorDocument 404: Cannot get it to work
Author
jeff00seattle



Joined: 17 Sep 2009
Posts: 9

PostPosted: Thu 17 Sep '09 7:27    Post subject: Custom ErrorDocument 404: Cannot get it to work Reply with quote

I am trying to get a custom ErrorDocument 404 to work, but it is being ignored.

I have created a custom 404 HTML document here:
..\Apache2.2\htdocs\errordocs\404.html

I have tried putting the following script into both ..\Apache2.2\conf\httpd.conf and .htaccess within root directory ..\Apache2.2\htdocs\.htaccess

ErrorDocument 404 /errordocs/404.html

I call a non-existant page:
http://localhost/sam.html

The access.log validates this page does not exist by showing:
127.0.0.1 - - "GET /sam.html HTTP/1.1" 404 216

However, the site still defaults to the standard 404 page and not to my custom 404 page.

What can be the problem???

Thanks

Jeff in Seattle
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Sep '09 11:55    Post subject: Reply with quote

Hi Jeff from Nirvana town,
maybe your .htaccess is not working.
What did you set to AllowOverride?
Back to top
jeff00seattle



Joined: 17 Sep 2009
Posts: 9

PostPosted: Mon 21 Sep '09 15:59    Post subject: Reply with quote

This problem is total related to this posting:
http://www.apachelounge.com/viewtopic.php?p=14061#14061

If a page cannot be noticed as an error, then I assume that it will ignore the custom 404 redirect.

Jeff in Seattle
Back to top


Reply to topic   Topic: Custom ErrorDocument 404: Cannot get it to work View previous topic :: View next topic
Post new topic   Forum Index -> Apache