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...
Domai
Altostratus
May 11, 2018The below should work if I understood you right...Again Jie helped me the other day so I would wait for his input as well..
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "oldsite" } and ([string tolower [HTTP::uri]] contains "/forms/pdf/somepdf.pdf") } {
HTTP::redirect "https://newsite/Dir%20PDF/somepdf.pdf"
else { use pool default_pool
}
}
where default_pool would be your existing pool on that vip.
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