Forum Discussion
coulbournc_1514
Nimbostratus
May 10, 2018Redirect does not include file in uri
I'm trying to create a profile or Irule to redirect links from a dead site to another site.
Old:
New:
I was able to create a profile that changes the host name and changes the path f...
Stanislas_Piro2
Cumulonimbus
May 11, 2018You can use following code to get file name
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "oldserver" and [string tolower [HTTP::path]] starts_with "/forms/pdf"} {
HTTP::respond 302 location "https://newserver[string map {"/forms/pdf/" "/oldserver%20PDF/"} [HTTP::uri]]"
}
}
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