Forum Discussion
Sunny_81459
Nimbostratus
Sep 16, 2008HTTP redirect
I need urgent help can some iRle expert write for me?
Brief:
currently, if i request https://test.com/groupabc/aarp.jsp is getting redirected to https://test.com/abc/priv...
hoolio
Cirrostratus
Sep 16, 2008I think you need to get the actual value of the Referer header and replace not equal (ne) with eq (equal). Also, HTTP::path would be more accurate if you want to check the path and object in the URI.
when HTTP_REQUEST {
if { ([string tolower [HTTP::path]] eq "/abc/private/xyz.do") and ([HTTP::header value Referer] eq "") } {
HTTP::redirect "https://test.com/groupabc/aarp.jsp"
} else {
pool test.com
}
}
Aaron
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
