Is there a way to rewrite an URL like
mod_rewrite in Apache2?
RewriteRule /products/([0-9]+)/([a-z]+) /getProduct.php?id=$1&mode=$2
For more information search google for mod_rewrite tutorials.
You may find this article helpful: URL Rewriting for beginners.
Also search for Mod Rewrite Cheat Sheet in Scribed, I found it helpful before. [Sorry couldn't post the link as I am allowed to post only one link]