Forum Discussion

Nath's avatar
Nath
Icon for Cirrostratus rankCirrostratus
Feb 03, 2016

Irule redirection

Hi can you please help with this.

 

I have 2 pool member eg. 1.1.1.1 and 2.2.2.2

 

If I hit f5 vs he will LB and if im assign to 1.1.1.1 pool member i should go to 1.1.1.1/asd/sample.com same on the second pool member.

 

1 Reply

  • Hi Nathaneil,

    to redirect initial www-root directory requests (aka. "/") to a given sub directory you may try the iRule below...

    when HTTP_REQUEST {
        if { [HTTP::uri equals "/" } then {
            HTTP::redirect "/asd/sample.com"
        }
    }
    

    Note: To make the users always stick to the same pool member, you have to use persistence profiles.

    Cheers, Kai