I'm new to url rewriting and having a problem i can't figure out.
I got this 2 conditions:
RewriteRule ([^/]+).php index.php?com=cat&catname=$1 [L]
RewriteRule ([^/]+)/([^/]+).php index.php?com=detail&catname=$1prodname=$2 [L]
and need 2 urls like this:
website.com/category-name.php
website.com/category-name/product-name.php
It seems that the first condition rules upon the second... i mean: if i call the first url everything works fine, but when i call the second url i can't get variables as i want ("com" is always "cat" and "catname" get the value of $2)
Thanks in advance!