There are lots of examples and tutorials covering Apache and mod_rewrite, but generally they address the problem where you want to map a ‘nice’ url to your script. For example: http://example.com/products/kitchen/cutlery to http://example.com/products.php?category=kitchen&sub-category=cutlery is easily achieved with the following .htaccess…