Forum Discussion
dabance
Jan 22, 2021Altocumulus
irule that only matches strict hostname
I am looking for below scenario
when accessing https://abc.xyz.com:8080 , i would like to redirect to https://cde.xyz.com:8080. Agree that is a simple irule. However when the request is https://abc.xyz.com:8080/xxx/xxx , i do not want the redirection.
How can we do that, any help is greatly appreciated.
You can check for the uri part of the request using [HTTP::uri]
Something like:
if { [HTTP::uri] equals "/" } { #Your redirect goes here }
- dabanceAltocumulus
Thank you. It worked
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