Forum Discussion

PM-Steve_69838's avatar
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.





3 Replies

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

    That should do it for you.

  • Arie's avatar
    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.