Forum Discussion
Ken_B_50116
Apr 08, 2016Cirrostratus
iRule to change the URL hostname and path, but nothing else
I need to write an iRule that will redirect the browser from this:
http://server1/fubarpath/AMSDocViewer.asp?DocID=626527942&Rev=1
to this:
http://server2/apppath/ImageEnablingLaun...
Stanislas_Piro2
Apr 09, 2016Cumulonimbus
Try this:
when HTTP_REQUEST {
if {([HTTP::path] equals "/fubarpath/AMSDocViewer.asp") && ([HTTP::host] equals "server1")} {
HTTP::respond 302 noserver Location "http://server2/apppath/ImageEnablingLauncher.aspx?[HTTP::query]"
}
}
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