# irule required for redirection

**URL:** <https://community.f5.com/t/irule-required-for-redirection/10044>\
**Category:** Technical Forums\
**Tags:** irules, security, ltm, application-delivery\
**Created:** [May 28, 2018, 4:45am UTC](https://community.f5.com/t/irule-required-for-redirection/10044 "2018-05-28T04:45:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK\_164512](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@AK\_164512](https://community.f5.com/u/AK_164512)\
**Post date:** [May 28, 2018, 4:45am UTC](https://community.f5.com/t/irule-required-for-redirection/10044/1 "2018-05-28T04:45:12Z")

</div>

Hi All, need help with an irule so that when a user tries [http://www.xxx.com/yy/service/](http://www.xxx.com/yy/service/)\* and URI contains yy/service then it goes to the HTTP server pool otherwise it gets redirected to [https://www.xxx.com](https://www.xxx.com).

any suggestions.

A

---

<div class="post-metadata">

**Author:** ![Only1masterbla1](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Only1masterbla1](https://community.f5.com/u/Only1masterbla1)\
**Post date:** [May 28, 2018, 4:54am UTC](https://community.f5.com/t/irule-required-for-redirection/10044/2 "2018-05-28T04:54:08Z")

</div>

Try using LTM policy without iRule.
