Forum Discussion
steven_normole
Cirrus
Jun 08, 2025URI Redirect
I thought it would be simple, but i guess i am just too thick. I need to have a redirect done, only if the URI does not contain a certain URI. If the URI contains /vss-df, or /vvs-df/appoitnment, ...
- Jun 08, 2025
Hello, you were close but equals and ne cannot be used with wildcard
try this
when HTTP_REQUEST
{
if { [HTTP::host] contains "<hostname>" }{
if { !([HTTP::uri] contains "/vvs-df") }{
HTTP::redirect "https://<redirect-URL>"
}
}
}
Jun 08, 2025
Hello, you were close but equals and ne cannot be used with wildcard
try this
when HTTP_REQUEST
{
if { [HTTP::host] contains "<hostname>" }{
if { !([HTTP::uri] contains "/vvs-df") }{
HTTP::redirect "https://<redirect-URL>"
}
}
}
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