I'm using rewrite rules in a htaccess to define particular strings which, when placed in an url opens specific pages.
e.g. in this case category name and product name
RewriteRule ^products/([a-zA-Z-]+)/([a-zA-Z-]+)$ /products.php?kat_name=$1&prod_name=$2
So when given URL is e.g. /products/shirts/t-shirt everything works fine. But when URL is /products//t-shirt, the rule doesn't work, because of empty string after the first slash.
How can I modify my rule to accept also empty pattern after the first slash?
Sorry I'm not very familliar with rewrite rules.
Thanks and best regards