Forum Discussion
iRule
Cirrus
Dec 31, 2020Multiple URIs redirect to single URL
Dear Community Experts, I need multiple URIs to be redirected to single URL. Please share iRule that will accomplish this requirement. Following three URIs need to be redirected to https://abc...
- Jan 01, 2021
There are multiple ways to achieve it but would suggest you to add two more conditions in existing iRule.
when HTTP_REQUEST { if { ([HTTP::uri] contains "en/good/morning.aspx") || ([HTTP::uri] contains "en/good/evening.aspx") || ([HTTP::uri] contains "en/good/night.aspx") } { HTTP::redirect "https://abcdef.com" } }
Cheers...
Samir
MVP
Jan 01, 2021There are multiple ways to achieve it but would suggest you to add two more conditions in existing iRule.
when HTTP_REQUEST {
if { ([HTTP::uri] contains "en/good/morning.aspx") || ([HTTP::uri] contains "en/good/evening.aspx") || ([HTTP::uri] contains "en/good/night.aspx") } {
HTTP::redirect "https://abcdef.com"
}
}
Cheers...
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