I would like to set this:
i have domain mydomain.com and if someone tried to connect to anything.domain.com i would like request to be forwarded to mydomain.com (that part may be done on dathorn server). Request should be passed to index.php which will distinguis actual requested domain and open contents in subdirectory of main domain.
In example:
user reguests subdomain.mydomain.com/contact.htm
request is forwarded to mydomain/index.php
index.php see's that actual request was for subdomain.mydomain.com/contact.htm so it reads contents of /subdomain/contact.php and sends it to the user.
subdomain.mydomain.com would be single or twopage site, only static html with soma image links, nothing more.
Well, before i starte wiriting on script I would like to know if there is something that actualy works this way?
i have domain mydomain.com and if someone tried to connect to anything.domain.com i would like request to be forwarded to mydomain.com (that part may be done on dathorn server). Request should be passed to index.php which will distinguis actual requested domain and open contents in subdirectory of main domain.
In example:
user reguests subdomain.mydomain.com/contact.htm
request is forwarded to mydomain/index.php
index.php see's that actual request was for subdomain.mydomain.com/contact.htm so it reads contents of /subdomain/contact.php and sends it to the user.
subdomain.mydomain.com would be single or twopage site, only static html with soma image links, nothing more.
Well, before i starte wiriting on script I would like to know if there is something that actualy works this way?

Comment