Forum Moderators: phranque
RewriteRule ^(.*)/(.*)$ /category.php?type=$1&query=$2 [L]
www.url.com/producer/him
but when I put that in,
none of my dir work, such as
/images
so how can I get around this without putting a word indicator in url or typing out every option in htaccess?
Thanks.
As a side note, do not use multiple ".*" patterns in a RewriteCond or RewriteRule. Processing the ambiguous, greedy, and promiscuous ".*" pattern leads to multiple "back-off-and-retry" cycles as the regex matching engine tries to find a match. Instead, use a negative-match pattern, which allows the requested URL-path to be matched with the pattern in a single left-to-right pass:
RewriteRule ^([^/]+)/([^/]+)$ /category.php?type=$1&query=$2 [L]
Jim