Forum Discussion
Domai
Altostratus
Sep 27, 2017iRule help to retain URI and update hostname
Hello Guys,
I am trying to come up with an irule to accomplish the following.
http://oldjunk.com/cat/site/default.asp and http://oldjunk.com/cat should be redirected to new page called
...
P_K
Altostratus
Sep 27, 2017Did you try replacing the hostname in the header like below ??
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "oldjunk.com") and ([string tolower [HTTP::uri]] starts_with "/cat") } {
HTTP::header replace Host "newupdatedsite.com"
}
}
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