[users@httpd] multiple RewriteRule to one RewriteCond

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux