Forum Discussion
Ken_Cottrell
May 17, 2011Nimbostratus
Multiple redirect/respond directives not allowed in logs
The rule is supposed to only fire on root "/" requests. It is supposed to not fire on user agent string matches defined in a search engine class list, but it should fire on user agent string matches defined in a mobile calls list.
If it is not a root request, it should fall through to the default pool for the VS.
As a side note, mobile.site.com is a CNAME for www.site.com
Does anyone see the problem with this rule?
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/") } {
if {not([class match [string tolower [HTTP::header User-Agent]] contains user_agent_search_engine_list])} {
if {([class match [string tolower [HTTP::header User-Agent]] contains user_agent_mobile_list]) } {
HTTP::redirect http://mobile.site.com/mobile/index.jsp
}
}
}
else {
pool www.site.com_80 }
}
- hooleylistCirrostratusHi Ken,
- Colin_Walker_12Historic F5 AccountAlso, the specific log entry that you're seeing would be helpful. As Aaron said, that rule alone wouldn't cause a multi-redirect error.
- Ken_CottrellNimbostratusYes there is another iRule prior to the mobile site iRule which redirects short name to full name shown below:
- hooleylistCirrostratusA runtime error like that is expected whenever more than one redirect is attempted on a single HTTP request.
- Ken_CottrellNimbostratusThanks for the information and options.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects