Forum Discussion
Harrish_371555
Nimbostratus
Nov 08, 2018An iRule to redirect one URL to an another URL
Need to create an iRule to redirect from http://workspace.abc.com/l3/ws1/AUST_Quality to https://abc.sharepoint.com/sites/L1_AUST_Quality.
1)workspace.abc.com is the F5-VIP 2)abc.sharepoint.com is an external website
Thanks for your help!
- Lee_Sutcliffe
Nacreous
You don't need to use an iRule for this - you can use a traffic policy: https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/local-traffic-policies-getting-started-12-1-0/1.html
To do this with an iRule you can try
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] equals "/l3/ws1/aust_quality"} { HTTP::redirect https://abc.sharepoint.com/sites/L1_AUST_Quality. } }
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