Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Custom ErrorDocument 404: Cannot get it to work |
|
Author |
|
jeff00seattle
Joined: 17 Sep 2009 Posts: 9
|
Posted: Thu 17 Sep '09 7:27 Post subject: Custom ErrorDocument 404: Cannot get it to work |
|
|
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
|
Posted: Mon 21 Sep '09 11:55 Post subject: |
|
|
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
|
|
Back to top |
|
|
|
|
|
|