Forum Discussion
Cindy_127211
Nimbostratus
Aug 16, 2006Rewriting URI on HTTP Response
Is it possible to 'rewrite' a URI when a response comes back from a server?
What we want to have happen is the following:
The user types in:
http://www.website1.com/dir1/dir2/dir3/abc.jsp
We want to have the page servered back to the end-user; however, we want the following displayed in their browser window:
http://www.website1.com/
(i.e. we are wanting to eliminate the display of all of the subdirectories and the file name).
I've tried several different things, but none of them work.
- Unfortunately what you are requesting cannot be done due to the HTTP protocol itself. If HTTP allowed for the URI to be returned as part of the response and the browser acknowledged that value then you would be all set. You could easily add this to a response header but the browser wouldn't know what to do with it. But, per the HTTP specs, the URI is only part of the HTTP Request and the browser displays the value of its last request.
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