Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1 Answer 1

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.