I have a structure of my web http://example.com/category_name/product_name
. I rewrite it to PHP by using the following RewriteRule :
RewriteRule ^(.*)/(.*)/$ detail-produktu.php?kategorie=$1&nazev=$2
But the problem occurs when I am trying to rewrite the address http://example.com/user/david
. This URL Always starts with /user
, so I want to rewrite it like this:
RewriteRule ^user/(.*)/$ index.php?user=$1
But still the URL with /user
goes to detail-produktu.php
.
What can I do?