Additionally, a 404 Not Found

.htaccessapache-2.2error handling

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.

Best Answer

What happens when you point your browser directly at the http://your.site/errors/404.php url?

I suspect your paths may be a bit confused.

C.

Related Topic