Layer 4 redirect any help appreciated

Hey everyone, looking for some assistance in creating an iRule to use for ADFS 2012 R2. Since it no longer relies on IIS you need to create an L4 VS on the F5 LTM. Any help would be greatly appreciated!!

This is what I am looking to accomplish:

  1. redirect from http to https
  2. append text to uri.

Example: users type in: http://site.domain.com

It is redirected to:  https://site.domain.com/misc/anything.any

The iRule commands you need are HTTP::redirect https://[HTTP::host]/misc/anything.any or HTTP::respond 302 Location https://[HTTP::host]/misc/anything.any.

We also have an iApp for deploying ADFS: DevCentral - An F5 Technical Community

I very much appreciate the response but unfortunately placing an HTTP profile on the ADFS VS actually breaks the VS and stops ADFS from working. Along those lines I cannot place an HTTP iRule without an HTTP profile on the VS.

ADFS 2012 R2 no longer relies on IIS so therein lies my issue. I will check out the link to the new iApp you sent. Appreciate it!