Forum Discussion

Allan_Hull_3699's avatar
Allan_Hull_3699
Icon for Nimbostratus rankNimbostratus
Jan 08, 2009

HTTP::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_46's avatar
    James_Quinby_46
    Historic F5 Account
    I 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.

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPass.html