Good Morning.
I am trying to use a php file as the 404 error page on my website.
I added the following line to my apache configuration file:
DocumentError 404 /error.php
This works fine if the non-existing page I am requesting has any extension other than .php. However if I request a non existing php script - I am prompted to download a file. (The downloaded file contaings the html of what should be displayed to the screen).
Any tips or ideas would be greatly appreciated. I have been searching and can find nothing about this issue. (I beleive permissions of the file are set correctly)
Thanks in advance!
abd 😕