Forum Discussion
Joe_Pipitone
Nimbostratus
Apr 27, 2015iRule not catching www.domain.com
The following iRule section where I've indicated "domain1.com" - "domain2.com" {" is not catching the domain1.com with the www. The iRule redirects perfectly fine if I exclude the www. Perhaps the ...
Mike_G_is_1_134
Nimbostratus
Apr 27, 2015Sorry, mis-typed the log command. Should be: log local0. "[HTTP::Host] has matched *domain1.com or *domain2.com"
Hope that helps.
Joe_Pipitone
Nimbostratus
Apr 27, 2015I just checked the logs, looks like its complaining about multiple respond/redirect invocations on line 14:
TCL error: /Common/my-irule - Operation not supported. Multiple redirect/respond invocations not allowed (line 14) invoked from within "HTTP::redirect "https://forum.domain2.com/default.aspx?g=topics&f=[URI::query [HTTP::uri] fid]"" ("fid=*" arm line 2) invoked from within "switch -glob [HTTP::query] { "tid=*" { HTTP::redirect "https://forum.domain2.com/default.aspx?g=posts&t=[URI::query [HT..." ("subdomain.domain1.com" arm line 2) invoked from within "switch -glob [string tolower [HTTP::host]] { "subdomain.domain1.com" { switch -glob [HTTP::query] { "tid=*" { ..."
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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