URL redirection - done by DNS?
Barry Margolin
barmar at genuity.net
Fri Aug 24 17:32:33 UTC 2001
In article <9m61ci$d3t at pub3.rc.vix.com>,
Danny Horne <danny at clifftop.net> wrote:
>I'm trying to figure out how to do URL redirection, particularly the type
>that preserves the original web address. Is this done by DNS or some
>other means (eg web server)?
If you're just translating one hostname to another, you can do it in DNS
with a CNAME record:
www.company1.com. IN CNAME www.company2.com.
If you also need to change the pathname component of the URL,
e.g. http://www.company1.com/XXX -> http://www.hosting.com/company1/XXX,
then you would put:
www.company1.com. IN CNAME www.hosting.com.
in your DNS, and on the www.hosting.com web server you would perform the
pathname modification in its virtual host configuration.
--
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list