I'm trying to remove the id's from the url's to make then a bit more friendly:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule ^(.*)$ $1\.php
RewriteBase /
RewriteRule ^cat/([a-zA-Z0-9---_]+)$ browse.php?id=$1
RewriteRule ^products/([a-zA-Z0-9---_]+)$ item.php?id=$1
RewriteRule ^products/([a-zA-Z0-9---_]+)&history=view$ item.php?id=$1&history=view