Forum Discussion
Joe_Pipitone
Nimbostratus
Jun 18, 2009Simple redirect with query not working
I am trying to put a simple redirect in place that simply appends a subdomain if the URI is specific, basically I want to say if the URI is:
http://ourdomain.com/the/learningcenters/center/...
hwidjaja_37598
Altostratus
Jun 18, 2009Ah, I see ... What about this:
when HTTP_REQUEST {
if { [string match "ourdomain.com/the/learningcenters/center/?msid=*" "[HTTP::host][HTTP::uri]"] } {
HTTP::redirect "http://legacy.[HTTP::host][HTTP::uri]"
}
}
Your iRule doesn't work because $h in your switch contains only "ourdomain.com" ([HTTP::host]) but not "/the/learningcenters/center/?msid=14"
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