Object not found - Error 404 in htaccess

1

In a site that I develop, when I write a link that does not exist, it gives me an error as follows:

Iwantyoutowritealinkthatdoesnotreallyexist,displaya404errorpagewithoutchangingthelinkinsteadofdisplayingthis"Object not found" warning message.

If it is possible to create this in htaccess, it would be one of my chances.

    
asked by anonymous 21.08.2017 / 03:15

1 answer

2

To create the redirection, you must use the ErrorDocument directive, add in your .htaccess , as you can see in the example:

## Redirecionar em caso de erros ##
ErrorDocument 404 /404.php
    
21.08.2017 / 03:32