Forum Discussion

1 Reply

  • One of your best bets will be to check out a few different pages including the wiki article for HTTP::uri to understand how to modify the URI in an iRule. Also the iRules 101 articles that are a good introduction to iRules in general and how to write them.

    Then, you can look at this iRule and better understand exactly what's going on, or how to modify it in the future to suit any changing needs you may have.

    when HTTP_REQUEST {
        if { [string tolower [HTTP::host]] equals "test.jobcredits.com" && ([HTTP::URI] equals "/") } {
            HTTP::redirect "http://www.test.jobcredits.com[HTTP::uri]"
        }
    }