F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

PM-Steve_69838's avatar
PM-Steve_69838
Icon for Nimbostratus rankNimbostratus
Nov 01, 2011

This should be an easy one..

Hi guys -

 

 

First time out here, great site... I have a web site that I just configured for my virtual server that is reached by typing: http://ERP

 

 

The situation is that I need to create a rule that will append and make the web call to: http://ERP/portal

 

 

Can someone please help me figure out how to write this VERY basic iRule to make this happen??

 

 

Much thanks in advance.

 

Steve

 

 

3 Replies

  • 
    when HTTP_REQUEST {
     if { [HTTP::uri] equals "/" } {
        HTTP::redirect "/portal"
      }
    }
    

    That should do it for you.

    Richard
  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus
    If I'm not mistaken, HTTP::uri includes the query string (if present). For that reason I'd use HTTP::path in this instance.