views:

17

answers:

2

Hi,

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.

A: 

Put the rule for the feeds before the other rule.

Ignacio Vazquez-Abrams
+1  A: 

What is the sequence of your rules? You should put the /feed/ rule as first one.

naivists
i-CONICA