I have multiple sites pointing at one development site.
I would like to be able to tell which URL was sent so I can redirect to the correct home page.
I have done this with 1and1 ISP using ASP (NOT ASP.NET) but finding it hard to get the same code for PHP.
for example say my developer site is www.mydevsite.co.uk and my other site is www.myothersite.co.uk.
I have multiple directories set up:
main
_index.php
mydevsite
____htdocs
______mydevsite.php
__private
myothersite
____htdocs
______myothersite.php
_____private
so if a visitor types in www.mydevsite.co.uk then index.php re-directs them to main/mydevsite/mydevsite.php
or if a visitor types in www.myothersite.co.uk then index.php re-directs them to main/myothersite/myothersite.php