-3

A given client needs to point a domain to my IP address. The problem is that when accessing through this subdomain it needs to "drop" at a certain URL.

For example:

sub.domainofmyclient.com => mydomain.com/foo/bar

How can I achieve this?

PS: Server is VPS with Apache (with WHM/cPanel).

Marco Garcia
  • 101
  • 1

1 Answers1

1

This seems to be a job for a HTTP redirection. You can't do that with DNS.

See the Apache Redirect and Rewrite modules. You will need external redirects.

RalfFriedl
  • 3,258