Sometimes when working with cPanel and a new domain pointed to it, at first the index will redirect you to the "new domain" cgi page.
Once you install a script afterwards the browser will still have that redirect cached somewhere so it will keep sending you there. New visitors will not have this issue and it's solveable by simply clearing your cache.