On 10/28/05, Jeremy Grant <jgrant@xxxxxxx> wrote: > I want to be able to apply multiple Rules to two conditions. This is > how I thought I could do it but I am finding this does nto work: > > RewriteCond %{HTTP_HOST} ^www\.colgate\.com [OR] > RewriteCond %{HTTP_HOST} ^origin\.www\.colgate\.com [NC] > RewriteRule ^/espanol(.*) > http://www.colgate.com/app/Colgate/USES/HomePage.cvsp [R=301,L] > RewriteRule ^/subscribe$ > http://www.colgate.com/app/Colgate/US/OC/SmileTalk/Subscribe.cvsp?Messag > e=Subscribe [R=301,L] If these are the only RewriteRules, then you can simple do RewriteCond %{HTTP_HOST} !^www\.colgate\.com RewriteCond %{HTTP_HOST} !^origin\.www\.colgate\.com [NC] RewriteRule .* - [L] Then all the following RewriteRules will only be run if HTTP_HOST is one of those values. If you also need other RewriteRules, replace the [L] with [S=99] where you replace 99 with the number of RewriteRules you need to apply. Joshua. > RewriteRule ^/radio$ > http://www.colgate.com/app/ColgateTotal/US/Coupon/Radio.cvsp [R=301,L] > RewriteRule ^/freshbreath$ > http://www.colgate.com/app/Colgate/US/OC/Information/OralHealthBasics/Co > mmonConcerns.cvsp?Filter=CategoryTopic_BadBreath&cid=YahooIMV_BadBreathA > rticles [R=301,L] > RewriteRule ^/lt$ http://www.colgate.com/app/Colgate/LT/HomePage.cvsp > [R=301,L] > RewriteRule ^/lv$ http://www.colgate.com/app/Colgate/LV/HomePage.cvsp > [R=301,L] > RewriteRule ^/cz$ http://www.colgate.com/app/Colgate/CZ/HomePage.cvsp > [R=301,L] > RewriteRule ^/si$ http://www.colgate.com/app/Colgate/SI/HomePage.cvsp > [R=301,L] > RewriteRule ^/sk$ http://www.colgate.com/app/Colgate/SK/HomePage.cvsp > [R=301,L] > > I am finding I am going to have to do: > > RewriteCond TestString CondPattern > RewriteCond TestString CondPattern > RewriteRule Pattern Substitution > > RewriteCond TestString CondPattern > RewriteCond TestString CondPattern > RewriteRule Pattern Substitution > > Is there a way to be able to apply more then on rule to a condition? > > Jeremy Grant > Unix System Specialist - Production Support > VML > 250 Richards Road > Kansas City, MO 64116 > jgrant@xxxxxxx > Desk: 816-218-3050 > Cell: 913-636-1112 > Office: 816-283-0700 > VML Fact: "One of the 25 Best Companies to Work for in America." > > Confidentiality Statement > > This transmission is confidential and intended solely for the party to > whom it is addressed. If the reader of this email is not the intended > recipient, you are hereby notified that it may contain privileged, > confidential and trade secret information, and that any dissemination, > distribution, copying or use of the information in this transmission is > strictly prohibited. If you have received this transmission in error, > please immediately notify the sender at the email address above, and > delete all copies of it from your computer. > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx