Forum Discussion
KJ_50941
Nimbostratus
Oct 24, 2018Need help with iRule
Is it possible to do a redirect in case the customer uses URL: https://example.com/test/index.html to https://example.com/test/my.jsp. Anything else after index.html should be allowed.
like url htt...
Kevin_Stewart
Employee
Oct 24, 2018If I understand the requirement, you want to redirect anyone that goes directly to "/test/index.html", but not if there's something after this in the URI (ex. "/test/index.html/transfer".
In that case, you could probably use a static equals evaluation in your iRule:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/test/index.html" } {
HTTP::redirect "/test/my.jsp"
}
}
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