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
2 Replies
- Kevin_Davies_40
Nacreous
when HTTP_REQUEST { if {[HTTP::uri] matches_glob "/NR/rdonlyres/*.pdf" } { HTTP::redirect "https://www.xyz.com" } }- nilendu_haldar1
Nimbostratus
Hi 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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