Forum Discussion
URI Redirect
- 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>"
}
}
}
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>"
}
}
}
- steven_normoleJun 08, 2025
Cirrus
thank you, i was trying this and it would just redirect regardless
I was trying this if {![HTTP::uri]] starts_with "/vvs-df/") } {
Recent Discussions
Related Content
* 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