My website is hosted with a company who have setup their DNS records so that any URL containing my domain will goto my webiste. I would like to setup sub-domains, but because of this setup, I have yet to find a way to do this.
Is it possible to create a php file which will look at the URL typed in by the user and then load the correct file.
For example, if the user typed in:
http://support.my-domain.org - the php file would look at it and see that it should load the file from
www.my-domain.org/support/index.html
I assume it would be a simple case of if..then..else. What I am struggling with is the layout of the code.
Many thanks to anyone who can help.
Stuart