Forum Discussion
DannyF_69324
Nimbostratus
Aug 18, 2011iRule to display remote content through fake URI
Hey Guys,
I know there is an iRule like this already out there, but I can't seem to find it. Anyway hopefully one of you guys can help me out.
I'm going to be creating several reseller site...
Michael_Yates
Nimbostratus
Aug 19, 2011Hi DannyF,
I fixed the syntax.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/help" -
"/help/" {
HTTP::header replace Location "https://helpsite.com/help"
pool pool_helpsite
snat automap }
}
}
If you use the iRule Editor (http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/1/aft/1172053/showtab/groupforums/Default.aspx) it will help you with the Syntax issues.
Hope this helps!
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