Forum Discussion
KJ_50941
May 14, 2015Nimbostratus
Redirect Irule help
current irule for this app is as below. both test and test 2 resolves to 192.168.192.1=example.com
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::redirect https://[HTTP::host]...
Samir_Jha_52506
May 15, 2015Noctilucent
Your iRule is correct. Please try this.
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] starts_with "/test1" ) or ( [string tolower [HTTP::uri]] starts_with "/test2" ) } {
HTTP::redirect "https://example.com[HTTP::uri]"
}
}
- nitassMay 15, 2015Employeei think forward slash (/) between fqdn and uri is not needed. HTTP::redirect "https://example.com[HTTP::uri]"
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