I am a pretty skilled programmer, but when it comes to RegEx and rewriting, I am a total n00b. I want to convert a URL from
http://www.example.com/lookup.ph
Take a look on htaccess rewrite urls! :)
Here's your example:
RewriteRule ^lookup/(\d+)/(.*)$ /lookup.php?id=$1&name=$2
When you access lookup/123/my-product/, it'll call the lookup.php?id=123&name=my-product file internally.
lookup/123/my-product/
lookup.php?id=123&name=my-product