Are you GETting the page or POSTing.
If you use POST your problem may come from strict RFC compliance.
From memory :
- RFC : If you get a 30x on a POST you shouldn't follow the redirection
- BUT some (most) browsers follow the redirection in such case but GET the redirected page...
Try to play with redirect_ok() ...