Redirect DNS to specific path

by Marco Garcia   Last Updated October 11, 2018 15:00 PM

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

For exemple:

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

How make this?

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

Tags : redirect


Answers 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
RalfFriedl
October 11, 2018 14:51 PM

Related Questions


Apache settings to prevent browser from redirect

Updated March 07, 2018 10:00 AM

IIS 8 URL Redirect on site level

Updated March 28, 2015 16:00 PM

In Nginx is there a way to log 301 redirects?

Updated June 09, 2017 17:00 PM

multiple redirects on lighhttpd

Updated November 11, 2015 09:00 AM

DNS redirect to website directory

Updated May 23, 2017 23:00 PM