• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Custom error documents

J

jpipitone

Guest
I've enabled custom error documents and I've modified the not_found.html document within the error_docs directory, however I'm still getting a default page as the error page, rather than my custom 404 page.

Any ideas why this is happening? You can view the example here:

http://www.digitonestudios.com/doesntexist.html
 
OK - I've restarted apache and now it seems to work....

One thing - can I use PHP includes within this custom error document now?
 
I don't think so, the files have a standard name with the html extension. Apache won't recognize them as php files.
 
Back
Top