httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Grant" <jgr...@vml.com>
Subject [users@httpd] multiple RewriteRule to one RewriteCond
Date Fri, 28 Oct 2005 21:39:21 GMT
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@vml.com
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message