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...
Nicolas_Menant
Employee
Sep 18, 2008
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: New HTTP request to [HTTP::host], [HTTP::uri] with Referer [HTTP::header "Referer"]"
if { ([string tolower [HTTP::path]] eq "/abc/private/xyz.do") and ([HTTP::header "Referer"] eq "") } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched URI with no Referer. Redirecting client."
HTTP::redirect "https://test.com/groupabc/aarp.jsp"
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: Request okay. Using default pool."
}
}
Can you try this one ?
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
