Forum Discussion
Ashraf1
Feb 11, 2020Nimbostratus
iRules appending after url
Hello F5 !!! I am newbie in the world of load balancing, apologies if I am posting a silly question. Recently I have published a https website, created a iRule to redirect from http to https u...
ragunath154
Feb 11, 2020Cirrostratus
try this irule
when HTTP_REQUEST {
if { ([HTTP::host] == "abc.com") and ([HTTP::uri] == "/*") } {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
elseif { ([HTTP::host] == "abc.com") } {
HTTP::redirect https://[HTTP::host]/something
}
}
- Ashraf1Feb 11, 2020Nimbostratus
Hello Ragu,
When I tried, recieving below error,
01070151:3: Rule [/Common/abc.com] error: /Common/abc.com:9: error: [undefined procedure: elseif][elseif { ([HTTP::host] == "abc.com") } { HTTP::redirect https://[HTTP::host]/something }]
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