I got a small 3 page website. I'm using url rewrite to avoid query strings and it works well, but my contact page needs variables in the url to return any errors. So I am now trying to use regex to capture errors & create variables to echo data back into the form & show errors.
I have done this code below to check url & include the right page which works fine, except when I use contact-us/whatever-I-want-to-capture. Then I get a warning: Warning: include(whatever-I-want-to-capture.php) [function.include]: failed to open stream: No such file or directory
What's going wrong here?

PHP Code:
// include the page according to the url
$url str_replace (SITE,'',$url);
$contact preg_match('/contact-us.*/',$url);
if (!
if (
$url $contact){

else { include(