Thanks for your help, Nathan. When I added the missing bracket, that didn't help. My TCP::local_port argument is incorrect. See error message:
01070151:3: Rule [/Common/iRule-redirect-Test] error: /Common/iRule-redirect-Test:2: error: [missing a script after "if"][ ]
/Common/iRule-redirect-Test:3: error: [wrong args][TCP::local_port == 80]
/Common/iRule-redirect-Test:7: error: [missing a script after "if"][ ]
I guess what I'm struggling with are the available commands. Do you know where I can find a list of available arguments/variables to manipulate?