Forum Discussion
Allan_Hull_3699
Nimbostratus
Jan 08, 2009HTTP::redirect maintain old URL
In client web browser, have url of "http://wiki"
Created the following iRule to redirect "wiki"
when HTTP_REQUEST {
VS - APP_redirect_prd_http_vs
IRULE - APP_redirect_prd_http_irule
DNS - APPredirectprd.bcbsneprd.com
Switch statement for APP production redirect
switch [string tolower [HTTP::host]] {
"wiki" { HTTP::redirect "http://weboma02prd/iswiki" }
}
}
The redirect works fine. I need to maintain the "http://wiki" in client browser. Have played with HTTP::host and HTTP::uri, but cannot maintain "http://wiki" in browser. Any insight would be appreciated.
- James_Quinby_46Historic F5 AccountI think you're looking for a way to proxy requests, along the lines of an apache proxy pass (with mod_proxy). This can be done via iRules - have a look at the one here, and see if the described behavior will fit the bill. Skip over the rule, as it's a little long, and check out the description.
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