I have been using your redirection script successfully on an other server for quite some time. All has been good.
Now, I have moved to a dedicated server (semi-managed). I have set up an account for the redirection domain and have the DNS set so that wildcard is functioning.
The server is running: PHP version 4.3.3
MySQL version 4.0.15-standard
I can set up new accounts and go all the way through the activation. The new accounts appear to work as intended as do the new accounts. However, if I type in a subdomain that is NOT set up as an account (so that the script has to pass from the index.php page to the main domain welcome page, I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/practica/public_html/myred/include/vars.php:43) in /home/practica/public_html/index.php on line 42
Also, if I log into the admin area, I can get logged in, but at the top a similar error shows:
Warning: Cannot modify header information - headers already sent by (output started at /home/practica/public_html/myred/include/vars.php:43) in /home/practica/public_html/myred/admin.php on line 38
In addition, clicking on any links to go to other areas of the site creates a situation where I have to log back in.
Any ideas regarding resolution? I don't want to reinstall because I made some modifications (minor) when I was on the other server, and I really like/need those mods. I don't want to have to go back through and make those adjustments again. If I HAVE to, I will, but I'd really rather not.
What do you think the trouble is, and how do I resolve it?