jrahma;10990762 wrote:I am trying the URL rewriting for the first time on mysql server
Well that's interesting, considering that MySQL has no such thing as "URL rewriting" (or any type of "URL" at all). Perhaps you meant an Apache server?
Well yes, why wouldn't you expect that? "/contact.php" doesn't match any of your RewriteRules, so Apache is just going to treat the request like it would any other request and look for that file.
jrahma;10990762 wrote:so is there anyway NOT to show it with .php and just /contact?
Why does it matter if someone specifically requests "contact.php" and gets it? Regardless, one option would be to create another RewriteRule that matches that query and rewrites it to "/contact" using the [R]edirect flag... or just redirect the request to some 404 error page if you'd like.