Sorry guys I am new to the forums and I don't seem to be able to find this in the forums.
I am temporarily doing my own hosting and I have edited the host file with the company that holds my domain and created the subdomains i need. The problem is when they get to my site I don't know how to redirect them without modifying apache which I really don't want to do. Can this be done with PHP.
At the moment I have 2 sub domains pointing at the IP address of my server. forums and webmail.
Is there any way of writing a php page using the header command so that if someone requests webmail.mydomain.com it reads the incoming name request and redirects to mydomain.com/webmail or whatever sub domain I set up
Any help would be greatly appreciated
I am temporarily doing my own hosting and I have edited the host file with the company that holds my domain and created the subdomains i need. The problem is when they get to my site I don't know how to redirect them without modifying apache which I really don't want to do. Can this be done with PHP.
At the moment I have 2 sub domains pointing at the IP address of my server. forums and webmail.
Is there any way of writing a php page using the header command so that if someone requests webmail.mydomain.com it reads the incoming name request and redirects to mydomain.com/webmail or whatever sub domain I set up
Any help would be greatly appreciated
