Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A try to make my own errordocument on Localhost...

In my .htaccess:

ErrorDocument 404 /errors/404.php

In the errros directory: 404.php

The .htaccess in the root directory.

But if i tpye some invalid url, like: http://localhost/test/index.pXX, then i got an error:

Not Found

The requested URL /webtest/index.pXX was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

In the 404.php the first line:

What is the problem?

Thank you.

share|improve this question

migrated from Feb 10 '10 at 13:25

This question came from our site for professional and enthusiast programmers.

What happens when you point your browser directly at the url?

I suspect your paths may be a bit confused.


share|improve this answer
If i point directly, then show the 404.php. So its not the problem..Any other suggest? – Holian Feb 10 '10 at 7:29
Strange - try using the full URL for the handler? – symcbean Feb 10 '10 at 9:00
yesss. it's ok. If use the full URL then OK! Thank u! – Holian Feb 10 '10 at 9:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.