Forum Discussion
Advice to partial rename uri path
- Jul 23, 2024
That's some very specific stuff you're trying to achieve ..
If the "client URL" you want to display does not exist on the server, I think you'll need two instructions in the iRule, one to redirect client to target URI and one to change this string before it connects to the webserver.
You might try something similar to this
when HTTP_REQUEST { if { [HTTP::host] equals "companyA.com" }{ #I'm using a switch statement so it's easier to add/change uri behavior in the future switch -glob [HTTP::path] { "/" { HTTP::redirect "https://[HTTP::host]/bed/table/r/Home" } "/bed/table/r/Home" { HTTP::path "/room/desktop/r/Home" } } } }
Thanks sir! It works it was masked now. But, I could see some images of ours got broken. Perhaps this was because of how it was coded. We only did use basic html for testing? We have not use this irule on production yet.
But, yes it did mask now. Thanks a Lot!!
Try using developer tools to understand how that image is called .. my suspicion would be that it referenecs the root folder "/"
- fred_zeig77Jul 25, 2024Altostratus
Ok thank you so much master! understood!
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