I want to setup 404 & 403 page using .htaccess but without the redirection.
My Code :
ErrorDocument 404 404error.php
ErrorDocument 403 403error.php
The code work fine but it redirect example.com/any-non-existed-page
to example.com/404error.php
but i want, if someone visited any not found page like example.com/any-non-existed-page
then it should show the content of 404error.php
without changing/redirecting the link. means the url remain same example.com/any-non-existed-page
but the content are displayed from 404error.php
.
Please help!!