Forum Discussion
southern_shred1
Sep 11, 2018Nimbostratus
Redirect Include URI
Hi
I'm having trouble with the following iRule.
The requirement is to redirect any requests to https://download.test.back.com to https://download.test.back.com/bred/publicweb/status/gifb
Any ...
Stanislas_Piro2
Sep 13, 2018Cumulonimbus
I guess this code may do what expected
when HTTP_REQUEST {
if { [HTTP::host] equals "download.test.back.com" && [HTTP::path] equals "/" } {
HTTP::redirect "/bred/publicweb/status/gifb[HTTP::uri]"
} elseif {[HTTP::uri] equals "/bred/publicweb/status/gifb" } {
HTTP::respond 403 content {request rejected}
}
}
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