Forum Discussion
quattroginger
Nimbostratus
Sep 28, 2020irule redirect help
looking for some assistance with creating a irule to redirect on 2 parts of a url. If someone hits my f5 going to https://app123.mydomain111.com/pages/app123 I want them to be redirected to https://...
Samir
MVP
Sep 29, 2020I don't see any syntax issue & irule should work.
Would like to recommend irule which will work even though in upper case url.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "app123.mydomain111.com" and [string tolower [HTTP::uri]] starts_with "/pages/app123" } {
HTTP::redirect "https://app456.mydomain111.com/pages/app789"
}
}
Thanks
- quattrogingerSep 29, 2020
Nimbostratus
thank you i will give this a try.
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