Welcome to WebmasterWorld Guest from 126.96.36.199
I did that yes, the server returns this:
The requested URL /wrong-link was not found on this server
is for. Delete ruleset "2".
and this unwanted redirection chain is a big problem.
explaining what the next line or two of code actually does.
That is the standard 404 response.
Note that when you specify an ErrorDocument that points to a remote URL (ie. anything with a method such as http in front of it), Apache will send a redirect to the client to tell it where to find the document, even if the document ends up being on the same server. This has several implications,
the most important being that the client will not receive the original error status code, but instead will receive a redirect status code. This in turn can confuse web robots and other clients which try to determine if a URL is valid using the status code. In addition, if you use a remote URL in an ErrorDocument 401, the client will not know to prompt the user for a password since it will not receive the 401 status code. Therefore, if you use an ErrorDocument 401 directive then it must refer to a local document.
ErrorDocument 404 /404/error.html
ErrorDocument 404 /404custom.html