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&...
JRahm
Admin
Jan 29, 2008
HTTP::redirect http://redirect.sample.abc.com/servlets/myProcessor?URI=[HTTP::uri]Though the URI will start with a leading /, so the true string will be:
http://redirect.sample.abc.com/servlets/myProcessor?URI=/sample/abc.dll&queryStr=sample&whoAreYou=Vikram
If you want to trim that off, you could do this:
HTTP::redirect http://redirect.sample.abc.com/servlets/myProcessor?URI=[string trimleft [HTTP::uri] "/"]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