Forum Discussion
hkr_36676
Nimbostratus
Jan 13, 2008Rewrite long-uri to short-uri........
Hi.
I am trying to rewrite a uri which is quite long.
1
Request from client:
http://www.mysite.com/SHORT/Start/$first?opendocument&Expand=1
The request to the server should be rewritten to:
http://www.mysite.com/ndk_website/seminar/proweb25/cmsdoc.nsf/Start/$first?
2
Furthermore any reference in the returning page should be rewritten to http://www.mysite.com/SHORT/Start/$first?.
I have managed to find a solution for the 2:
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression "@/ndk_website/seminar/proweb25/cmsdoc.nsf/@/SHORT/@"
STREAM::enable
}}
To add it up I want the client to use a SHORT uri and
the server a LONG uri.
/Hallur
- hoolio
Cirrostratus
Hello,
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