Forum Discussion

Vaughn_96017's avatar
Vaughn_96017
Icon for Nimbostratus rankNimbostratus
Jun 27, 2007

Redirect based on user browser (mobile)

I am writing an iRule that states if the user is coming in via a mobile device to get redirected to a different pool. My question, here is what I have, is this correct?

 

 

when HTTP_REQUEST {

 

if {[HTTP::header User-Agent] contains "Mozilla"}

 

{pool default-pool} else {pool mobile-pool}

 

 

I was givin a list of known mobile user agents to look for but wouldn't it be easier to just look for the non mobile user agents?

 

 

Version 9.4 HF4

 

13 Replies