Forum Discussion
flefranc_29890
Nimbostratus
Sep 12, 2008rewrite the uri seen by the user
Hello,
One example :
the server return http://hostname.domainname/urireallylong
I want the users see only a simple uri like :
http://hostname.domainname/urishort
How...
hoolio
Cirrostratus
Sep 12, 2008Do you want to rewrite the URL in the Location header of a redirect or in the page content? If the former, you can use check for 30x redirect responses, and rewrite the Location header using 'HTTP::header replace Location "http://newurl.example.com/newuri". If you want to rewrite the response data, you can use a stream profile and STREAM::expression to perform the rewrite. If you clarify where you want to do the rewriting, we can provide more detailed examples.
Also, if you issue a redirect, the client is redirected to a new location and the browser's address bar would be updated. If you rewrite the requested URI using HTTP::uri, the change would only be made to the request sent from LTM to the server.
Aaron
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