in reply to How do I redirect to another URL after I already specified an html header?

Assuming you can't get your $cgimain-object to print additional headers, you could use an http-equiv meta-thingie in your html code:
<html> <head> <meta http-equiv="Refresh" CONTENT="0; URL="http://www.emileaben.com/"> </head> <body></body> </html>