04-30-2007 05:50 AM
Hi,
We have need to redirect mobile users to site that has an optimized view for the content. There are 32 devices needing to be redirected, by matching the User Agent field in the HTTP header.
Do I need to create 32 individual L5 rules or will the CSS do an "OR" funtion on the fields defined in a single header group?
Thanks,
Pat
!********************* HEADER FIELD GROUP *********************
header-field-group Usablenet
description " Match User Agent"
description " Match User Agent"
header-field 1 user-agent contain "AU-MIC"
header-field 2 user-agent contain "AUDIOVOX"
header-field 3 user-agent contain "Alcatel"
header-field 4 user-agent contain "BlackBerry"
header-field 5 user-agent contain "Blazer"
header-field 6 user-agent contain "Danger\ hiptop"
header-field 6 user-agent contain "DoCoMo"
header-field 7 user-agent contain "Ericsson"
header-field 8 user-agent contain "Googlebot-Mobile"
header-field 9 user-agent contain "Handheld"
header-field 10 user-agent contain "Klondike"
content Test_L5_http-header
vip address 192.168.1.10
header-field-rule Usablenet
protocol tcp
port 80
url "/*"
add service mobile_redirect
active
service mobile_redirect
keepalive type none
type redirect
no prepend-http
domain "http://mobile.com"
active
04-30-2007 07:22 PM
If a header field group contains multiple header field entries, a content request must match each entry for the rule to be used.
Syed
05-01-2007 05:55 AM
Syed,
We have 5 L5 rules on this VIP currently, I'm thinking adding 30 more rules will affect the response times.
Our other alternative is to do the redirect on the web server.
Thanks, for the quick reply.
-Pat
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide