Forum Discussion
direct request traffic to the specific directory of another server
Probably at least part of what's happening is that the client will request something like:
/coads/las/image.png
but then your irule rewrites the request URI part into:
/las
The server will then respond with the default page for "https://whatever.com/las/", causing all kinds of havoc because the browser will think it's requesting JS or CSS or an image or something, but then the server will return the default HTML page.
It's best not to rewrite URIs if you can avoid it because it causes a disconnect in L7 between what the client is requesting and what the server sends back, making troubleshooting very difficult for a web developer. But for your example, you'll need to rewrite ONLY the part you need to rewrite. You can use "string map" or regex, but regex is usually much more expensive. This DevCentral post has a simple example:
https://devcentral.f5.com/questions/search-and-replace-with-irule
Recent Discussions
Related Content
* 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