Forum Discussion
nilendu_haldar1
Nimbostratus
Feb 27, 2017iRule to redirect URL ending with .pdf
Need iRule script for the following requirement.
any requests such as https://www.xyz.com/NR/rdonlyres/*******.pdf should be redirected to https://www.xyz.com.
here ***** means anything
Kevin_Davies_40
Nacreous
Feb 28, 2017when HTTP_REQUEST {
if {[HTTP::uri] matches_glob "/NR/rdonlyres/*.pdf" } {
HTTP::redirect "https://www.xyz.com"
}
}
nilendu_haldar1
Nimbostratus
Mar 02, 2017Hi Kevin, Thanks a lot for your reply. This looks pretty good. Let me test it in our Test environment, and see if this works. Thanks again.
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