Thanks for commenting folks. I think I've got it working with the following, can you see any potential problem with it? I'm a bit of a php duffer but I'm havin' a go and learning...
if($uri == "/example-directory/faq/")
echo "<div>groovy stuff</div>";