I have a website hosted at www.example.com and a client that wants to point a subdomain of his to our website.
i.e. if someone visits subdomain.foo.com, then this automatically points to www.example.com/foo
This shouldn't be done via a redirect - i.e we want a visitor to subdomain.foo.com to remain on that url, even if they navigate further into the site.
I'm not sure if this is even possible.