Forum Discussion
SantoshGowda_32
Nimbostratus
Feb 26, 2019Need your assistance to create a F5 redirection rule for /user/login.seam -> /login
Please let me know whether below irule is correct or not:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/user/login.seam" } {
HTTP::uri [string map {"/user/login.seam" "/login"} [HTTP::uri] ...
CharlesCS
Cirrus
Feb 26, 2019I would use
HTTP::path
rather than HTTP::uri
, because the URI could include a query string and hence the comparison would fail.
when HTTP_REQUEST {
if { [HTTP::path] ends_with "/user/login.seam" } {
HTTP::path [string map {"/user/login.seam" "/login"} [HTTP::path] ]
}
}
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