Dear Nitass,
Thanks so much for your help, if i want to use mre mobile types will below iRule works
when HTTP_REQUEST {
if { [HTTP::host] equals "home.example.co.in" } {
if { [URI::query "?&[HTTP::query]" main] equals "true" } {
return
}
if { [string tolower [HTTP::header "User-Agent"]] contains "iphone" -
"android" -
"ipad" -
"blackberry" -
"windowsphone" -
"windows phone" -
"windowsce" -
"windows ce" -
"symbainos" -
"symbain os" -
"symbain" -
"java" } {
HTTP::redirect "
https://lite.example.co.in"
}
} elseif { [URI::query "?&[HTTP::query]" main] equals "true" } {
HTTP::redirect "
https://home.example.co.in?main=true"
}
}
Waiting for your reply.
Regards,
Ashish Takawale.