Rewritecond multiple RewriteRule

Posted by swamprunner7 on Stack Overflow See other posts from Stack Overflow or by swamprunner7
Published on 2010-03-14T14:03:24Z Indexed on 2010/03/14 14:05 UTC
Read the original article Hit count: 247

Filed under:
|
|
|
|

How can i rewrite these:

RewriteCond %{HTTP_HOST} ^(www\.)?([0-9a-zA-Z\-_]+)\.test\.com$ [NC]
RewriteRule ^$ /feeds.php?act=user&login=%2 [L]

RewriteCond %{HTTP_HOST} ^(www\.)?([0-9a-zA-Z\-_]+)\.test\.com$ [NC]
RewriteRule ^(faves)$ /feeds.php?act=faves&login=%2 [L]

to something like:

RewriteCond %{HTTP_HOST} ^(www\.)?([0-9a-zA-Z\-_]+)\.test\.com$ [NC]
RewriteRule ^$ /feeds.php?act=user&login=%2 [L]
RewriteRule ^(faves)$ /feeds.php?act=faves&login=%2 [L]

Is it posible to apply RewriteCond for multiple rules?

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite