Port redirection not working anymore

I am running rails on lighttpd on port (8888) and am using iptables to
do pre and post routing to make it appear it’s running on port 80.
Everything was working fine until recently (not sure why). Now when my
rails app redirects its redirecting to port 8888 not 80.

Does anybody know how to fix this? Reapplying the iptable rules has no
effect?

I am running Rails 0.14.3

Thanks,

Michael