# I-Rule Build

**URL:** <https://community.f5.com/t/i-rule-build/40277>\
**Category:** Technical Forums\
**Tags:** big-ip, application-delivery\
**Created:** [April 17, 2017, 7:52pm UTC](https://community.f5.com/t/i-rule-build/40277 "2017-04-17T19:52:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roysuman\_317731](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Roysuman\_317731](https://community.f5.com/u/Roysuman_317731)\
**Post date:** [April 17, 2017, 7:52pm UTC](https://community.f5.com/t/i-rule-build/40277/1 "2017-04-17T19:52:05Z")

</div>

I have newly joined in the network team and want to know what is the concept behind I-rule means logic to build i-rule also i have to build one i-rule for redirection of url Redirect the following Dayton Power & Light URL:

```tcl
https://daytonpower.e2.pb.com

```

- To the following new URL, provided by DPL:

---

<div class="post-metadata">

**Author:** ![Hectorm](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@Hectorm](https://community.f5.com/u/Hectorm)\
**Post date:** [April 17, 2017, 9:58pm UTC](https://community.f5.com/t/i-rule-build/40277/2 "2017-04-17T21:58:01Z")

</div>

Here is simple Irule that redirect the traffic Now I will recommend that you go to F5 University site. Many of the training are free specially the Basic Irule. the F5 University is part of the DEVCENTRAL

when HTTP\_REQUEST { change the Vheader to lower case and the URI just case you want to filter by URI set Vuri [string tolower [HTTP::uri]] set Vheader [string tolower [HTTP::host]] Compare if the data enter by the user is the same what do you want to change. if {$Vheader equals “[daytonpower.e2.pb.com](http://daytonpower.e2.pb.com)”} then { HTTP::redirect ";}

}
