Say i had a site with a few clients on it…
http://www.example.com/client1/
http://www.example.com/client2/
http://www.example.com/client3/
and i wanted them to be displayed at the following domains…
http://www.example.com/client1/ > http://www.client1.co.uk/
http://www.example.com/client2/ > http://www.client2.co.uk/
http://www.example.com/client3/ > http://www.client3.co.uk/
How would i do this with DNS, Would i use CNAME?
I want all the links to work still so this would work…
http://www.example.com/client1/images/pic.jpg to
http://www.client1.co.uk/images/pic.jpg
Thanks
This cannot be done using the DNS. A DNS system does not know anything about HTTP or websites; it just knows how to translate a hostname like http://www.example.com to an IP address, that’s it.
If you use Apache just use this in the .htaccess file
More details at the Apache website