This implies that you have a blank line of code on line 1. PHP doesn't allow blank lines before a redirect. Go through your page and remove any blank lines and the error should go away.
If you attached a copy of the index.php file I could be more specific.