homepage Welcome to WebmasterWorld Guest from 54.226.80.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Domain Names
Forum Library, Charter, Moderators: buckworks & webwork

Domain Names Forum

    
How to Configure alias domain redirect at DNS level?
Is this even possible?
ocon




msg:4269999
 7:34 am on Feb 21, 2011 (gmt 0)

I own widget.org which I use, but I also own widget.com.

I would like to setup widget.com to redirect to widget.org:

widget.com/anything => widget.org/anything
anything.widget.com => anything.widget.org
anything.widget.com/anything => anything.widget.org/anything

Ideally, I would like to set this up at the DNS level.

Is this possible?

(If it is relevant, GoDaddy is my domain register, and widget.com is currently parked with them.)

Thanks

 

quesera




msg:4270684
 7:06 pm on Feb 22, 2011 (gmt 0)

There's no concept of "redirection" in DNS.

The setup you describe is usually achieved as follows:

  1. setup DNS for example.org ("A" record with address of webserver)
  2. setup DNS for example.com ("CNAME" pointing to example.org)
  3. configure webserver -- either
    • "redirect" example.com requests to example.org, OR
    • serve the same pages for both domain names


If you care about google ranking etc, you want to redirect to a single canonical hostname (example.com, as well as www.example.com and www.example.org, should all redirect to example.org).

g1smd




msg:4270747
 9:16 pm on Feb 22, 2011 (gmt 0)

Point all the domains at one server.

On that server install a
.htaccess file with mod_Rewrite that tests what was asked for and issues a redirect if necessary.
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Domain Names
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved