I am trying to add custom html to a 404 page.
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?
thanks in advance!
PHP:
<?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/find/whatever = Display HTML 2
Is this even possible with PHP and HTML?
thanks in advance!