Forum Discussion
vikram_95579
Nimbostratus
Jan 29, 2008URL Redirect
Hello All,
I am new to iRule. Can someone help me with my problem of URL Redirect ?
Problem:
Source URL: http://sample.abc.com/sample/abc.dll?queryStr=sample&whoAreYou=Vikram
I want to redirect the URI containing 'sample/abc.dll' to another server and
redirect URL should be of something like this.
Target/Redirect URL: http://redirect.sample.abc.com/servlets/myProcessor?URL=http://sample.abc.com/sample/abc.dll?queryStr=sample&whoAreYou=Vikram
OR
Target/Redirect URL: http://redirect.sample.abc.com/servlets/myProcessor?queryStr=sample&whoAreYou=Vikram
Thanks,
Vikram
4 Replies
- vikram_95579
Nimbostratus
I am looking for kind of similar stuff. But is there a way to append even HTTP::uri also into Query String ? - JRahm
Admin
HTTP::redirect http://redirect.sample.abc.com/servlets/myProcessor?URI=[HTTP::uri]
HTTP::redirect http://redirect.sample.abc.com/servlets/myProcessor?URI=[string trimleft [HTTP::uri] "/"]
- kike_104494
Nimbostratus
I am new in iRules, I have a problem and I want to know if F5 LTM 9.05 can do a redirec: - hoolio
Cirrostratus
Hi eramosipn,when RULE_INIT { Log debug messages to /var/log/ltm? 1=yes, 0=no. set ::redirect_debug 1 } when HTTP_REQUEST { Log the URI and path if {$::redirect_debug}{log local0. "Requested URI: [HTTP::uri], requested path: [HTTP::path]"} Check if the path is the one we're looking for if {[HTTP::path] eq /portalwap.wml}{ if {$::redirect_debug}{log local0. "Redirecting client [IP::client_addr] "} Send a 302 redirect to the client HTTP::redirect http://mitelcel.example.com:7015/PortalUMTS/UMTS/ } }
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