# Need help with none http profile redirect

**URL:** <https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809>\
**Category:** Technical Forums\
**Tags:** irules, ltm, application-delivery\
**Created:** [July 17, 2020, 10:39am UTC](https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809 "2020-07-17T10:39:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adeola](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@Adeola](https://community.f5.com/u/Adeola)\
**Post date:** [July 17, 2020, 10:39am UTC](https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809/1 "2020-07-17T10:39:21Z")

</div>

Hi All,

Can anyone one help with this simple redirection:

When users [http://adeniyiqa.ngasystem.com/CMWM](http://adeniyiqa.ngasystem.com/CMWM) should be redirected to [http://adeniyiqa.ngadsystem.com:8003/CMWM](http://adeniyiqa.ngadsystem.com:8003/CMWM)

Thanks for you help in advance.

Ade

---

<div class="post-metadata">

**Author:** ![Mayur\_Sutare](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/mayur_sutare/32/5035_2.png) [@Mayur\_Sutare](https://community.f5.com/u/Mayur_Sutare)\
**Post date:** [July 17, 2020, 12:05pm UTC](https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809/2 "2020-07-17T12:05:33Z")

</div>

,

If you want redirection specific to above host and uri, you can use below iRule. But if you need same redirection for all host with same URI and/or same host with different uri, you need to modify iRule statements accordingly. Let me know if below iRule works for you.

```tcl
when HTTP_REQUEST {
if { [HTTP::host] contains "adeniyiqa.ngasystem.com" }{
if { [HTTP::uri] starts_with "/cmwm" }{ 
HTTP::redirect <a href="http://adeniyiqa.ngasystem.com:8003/cmwm" target="_blank" rel="nofollow noopener noreferrer">http://adeniyiqa.ngasystem.com:8003/cmwm</a>
}
} 
}

```

Mayur

---

<div class="post-metadata">

**Author:** ![Adeola](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@Adeola](https://community.f5.com/u/Adeola)\
**Post date:** [July 17, 2020, 12:57pm UTC](https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809/3 "2020-07-17T12:57:32Z")

</div>

Hi Mayur,

Thanks for a quick response.

Now I cannot attached it to the VS. It generate error below:

"01071912:3: HTTP\_REQUEST event in rule (/Common/adeniyiqa

) requires an associated HTTP or FASTHTTP profile on the virtual-server (/Common/adeniyiqa.ngasystem

.vs.tcp.8003)."

If I associate HTTP OR FASHTTP profile to the VS it stop working completely because the backend is not build on http.

---

<div class="post-metadata">

**Author:** ![Mayur\_Sutare](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/mayur_sutare/32/5035_2.png) [@Mayur\_Sutare](https://community.f5.com/u/Mayur_Sutare)\
**Post date:** [July 17, 2020, 1:05pm UTC](https://community.f5.com/t/need-help-with-none-http-profile-redirect/49809/4 "2020-07-17T13:05:30Z")

</div>

Is it possible for you to share Virtual Server & backend pool member configuration here to verify same?

Mayur
