I am trying to add custom html to a 404 page in wordpress.
<?php
$filename = "/find";
if (!file_exists($filename))
echo $filename, " display html2 ";
elseif (!is_dir($filename))
echo $filename, " display html1 ";
?>
If someone visits http://www.demosite.com/about/whatever = Display HTML 1
If someone visits http://www.demosite.com/find/whatever = Display HTML 2
Is this even possible with PHP and HTML?