Forum Discussion
jmeuse35_166730
Nimbostratus
Oct 22, 2014URL Rewrite - No redirection
A bit new to processing the irules and have a question which I hope the group can asisst with.
Scenario:
User URL: http://site.company.com/study1
F5 will rewrite the URL -> /ServiceStudyDB...
Hannes_Rapp_162
Nacreous
Oct 22, 2014Seems like there's plenty of over-complication in your current rule. You don't need to overwrite server responses as only the URI was modified. It does not violate cross-domain policy and user browser has no problem with it. Furthermore, it has no awareness the response content did not originate from the originally requested directory.
The iRule below should cover your needs:
when HTTP_REQUEST {
if {[HTTP::uri] contains "/study1"} {
HTTP::header remove "Accept-Encoding"
HTTP::uri "/ServiceStudyDB"
STREAM::disable
}
}
jmeuse35_166730
Nimbostratus
Oct 22, 2014Thank you for the response and I have tested the simplified iRule. The problem exists when the server has a 302 from within itself to send the requesting URL to /ServicesStudyDB/login.aspx.... Therefore, are "response" rewrite is also required as the requesting browser should only know about /study1. Keep in mind the reason for this is that as we add /study2, /study3, etc.. we will be sending to specific backend nodes and need to keep the URI string on the request in order to send to the correct backend server. Seems the response is the loop. I have this working on the Cisco ACE with some major manipulation and being tasked with getting this to workon on the F5 (which seems possible).
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