Are the tasks running in private subnets? If yes, set assignPublicIp: false and ensure a NAT Gateway for outbound.
assignPublicIp: false
Also, confirm WP_HOME / WP_SITEURL envs (or DB values) match the ALB DNS. Wrong hostnames often cause 301/302.
WP_HOME
WP_SITEURL