Forum Discussion
Puli
Nimbostratus
Aug 17, 2010re-direct a URL but maintain the same URL in browser
i have a requirement as below.
From URL : http://serverA.com/eng/test.hml
This need to be re-directed or re-written to
To : http://serverA.com/global/eng/test.html ...
Hamish
Cirrocumulus
Aug 20, 2010That's because Joes example doesn't do a redirect. It simply changes the URL that the backend sees. What you're doing is the same. But if the user types in a URL that then gets mapped to a DIRECTORY on the backend the backend WILL send a redirect. And the URL will of course change on the browser.
What you need to do is put a lot more intelligence in your iRule. Either maintain a list of valid documents that can be accessed without a redirect (And translate to a document instead of a directory), or have a much more complex iRule that intercepts the redirect, and then re-issues the request with the redirected document instead of the directory directly from the F5 without sending the redirect to the browser.
H
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