Custom “Page not found ” is working on regular pages , if pages does not exist.
I test by manually typing wrong url and it works.
But i have some pdf files . The url will end in “.pdf” and if file does not exist it is giving a 404 error , not custom page .
Is there any different setting for pdf pages ?
i believe rewrite rule for page not found is correct in .htaccess. I want to know what special about the PDF file . Did Anybody had this issue??
Read more here: WordPress - Custom error page is not working for pdf