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...
flefranc_29890
Nimbostratus
Sep 15, 2008Hello,
Thank you for you kindly help ...
I want to hide the url to the users...Where it clicks / inforamtion it enters / servers response : I want he sees only the url address : http://applicationname.com. Because of bad development of the web servers and privacy failure...
Do 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".
It is a i-rule ? I don't know what's a 30x redirect responses...
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.
I don't have much information on stream in my documention...
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.
OK : i see it creating http class. But i want it is removed everytime and http class are not really flexible.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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