Forum Discussion
JustCooLpOOLe
Cirrocumulus
Jan 18, 2017Append a URI to a Host via iRule
I have an iRule that is currently set up to look at the host name and uri to determine pool redirection. The customer would like that changed to append the URI /testing when the HOST is . My though...
stan_piron
Cumulonimbus
Jan 18, 2017Hi,
rewrite uri only if necessary.
if you rewrite /index.html to /testing/index.html, then if this document contains links to /testing/img/logo.png, then the next request will contain /testing, and then the irule will append /testing --> wrong...
when rewriting path, you must look at response to be sure it does not contain the internal path in links.
so, if the customer accept redirect, it will be better.
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