Forum Moderators: phranque

Message Too Old, No Replies

Domain to domain redirect including subdir

         

dlwilson007

8:12 pm on Sep 23, 2010 (gmt 0)

10+ Year Member



Hi,

I have olddomain.com that I want to do a DNS redirect to newdomain.com/subdir. For the DNS redirect, I believe I would have to create a subdomain. So my question is this: is it possible to make the new subdomain.newdomain.com appear to an end user to be olddomain.com.

I realize it would be much easier to create a new hosting account and update my DNS servers, but it would be nice to manage the two web sites from one host.

Thoughts?

David

jdMorgan

1:04 pm on Sep 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DNS does not do "redirects." It only maps hostnames to server IP addresses. And you can't use DNS to "point to" a subdirectory, as it only handles hostnames.

You will either need to set up a reverse proxy (requires server config access) or just point both domains to the same server, and configure the server using "control panel add-on (sub)domain settings" or, (if you have a unique/non-shared IP address for this server) mod_rewrite to "sort out" the requests for the two hostnames as they arrive at the server.

Jim

dlwilson007

1:20 am on Sep 29, 2010 (gmt 0)

10+ Year Member



Thanks! We do have control panel add-ons, so that will take care of it and will be easy.