Forum Discussion
js55161_47239
Nimbostratus
Apr 22, 2008HTTP Redirect
Can someone tell me where i am going wrong with the following irule please? The BIG-IP ltm doesn't like the redirect command so what can i use instead?
when HTTP_REQUEST {
if {[HTTP::uri] contains "ShP/anqmemlogin.jsp"} {
redirect "https://wwwpp20.landg.com/ManageYourAccountWeb/ENTRY_POINT"
}
elseif {[HTTP::uri] contains "bpcentre"} {
redirect "https://wwwpp20.landg.com/BPCentre/docbase/bpcentre/index.hml"
}
elseif {[HTTP::uri] contains "ShP"} {
pool wwwpp20.landg.com
}
elseif {[HTTP::uri] contains "DocumentLibraryWeb"} {
pool wwwpp20.landg.com
}
elseif {[HTTP::uri] contains "ShPSchemeAdmin"} {
pool wwwpp20.landg.com
}
elseif {[HTTP::uri] contains "cehttp"} {
pool wwwpp20.landg.com
}
elseif {[HTTP::uri] contains "CAWeb"} {
pool ppentry.landg.com
} else {
pool ppentry.landg.com
}
}
Many Thanks
- js55161_47239
Nimbostratus
This is what i have changed it to after your suggestion ... - js55161_47239
Nimbostratus
v9.4.3. - Nicolas_Menant
Employee
Hi,when HTTP_REQUEST { switch -glob [HTTP::uri] { "*ShP/anqmemlogin.jsp" { HTTP::redirect "https://wwwpp20.landg.com/ManageYourAccountWeb/ENTRY_POINT" } "*bpcentre*" { HTTP::redirect "https://wwwpp20.landg.com/BPCentre/docbase/bpcentre/index.hml" } ... default { pool ppentry.landg.com } } }
- EFFFIVE_26332
Nimbostratus
This is a little advanced for me. How can I do a simple redirect to make all https pages resolve to http? - EFFFIVE_26332
Nimbostratus
Never mind... I think that I've found the answer.
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