Forum Discussion

6 Replies

  • Logic: if a hostname equals "test.fedbank.com" then it should respond 301 and redirect to "abc.bank.ca/,,,,,,,,,"

  • What are the conditions u want to use this iRule for? 

    For a simple 301 Redirect you could use: 

    when HTTP_REQUEST {
        HTTP::respond 301 Location https://abc.bank.ca "Connection" "Close"
    }

    This will redirect all traffic on the virtual server towards the domain abc.bank.ca. Of course you could expand on this by keeping for example the URI elements attached.