I have a list of rewrite rules, but one of the rules is applying to something I need it to not apply to.
Here is the rewrite rule causing the problem,
RewriteRule ^([^/]*)/$ /category.php?category=$1 [L]
It's meant to rewrite .com/catname/ to /category.php?category=catname which it does fine, but I need it to not apply to anything beginning with /feed/, as these aren't handled by category开发者_开发知识库.php. I have this rule for the feeds, but it's not getting a chance to do it's thing...
RewriteRule ^feed/([^/]*)/$ /feed/?cat=$1 [L]
Can anyone help?
Thanks.
What is the sequence of your rules? You should put the /feed/
rule as first one.
Put the rule for the feeds before the other rule.
精彩评论