Solved

CNAME question

Posted on 2009-07-06
5
355 Views
Last Modified: 2012-05-07
I have 5 domains on my server that I want to point to 1 domain so this 1 domain can be accessed via any of the 5 URLs. The point of this is the website on this one domain will determine which URL is being used to access it and provide data based on that. Say e.g. it's a property site and the domains are property-uk.com, property-usa.com, etc. so if I visit property-uk.com it will point (NOT redirect) to that single site and server all UK properties, etc.

I do, however, require the alias domains to be able to manage their own mailboxes, etc. so simply parking is not an option.

How can I make these 5 domains point to the master domain (call it property.com)? Would I add a CNAME record for these 5 domains so that www points to www.property.com.?
0
Comment
Question by:DarkHill
  • 3
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Chris Dent
Comment Utility

CNAME would work well enough provided the web server is willing to answer for those names (may be an issue if host headers are used).

You wouldn't see URL rewriting with that, but from the above I don't think you want or expect that anyway.

Chris
0
 
LVL 7

Author Comment

by:DarkHill
Comment Utility
>> You wouldn't see URL rewriting with that, but from the above I don't think you want or expect that anyway.

What do you mean with that? I would require URL rewriting using .htaccess, e.g. URLs may be:

www.property-uk.com/property-details/1/name-of-property

and

www.property-usa.com/property-details/5/name-of-property-2
0
 
LVL 70

Expert Comment

by:Chris Dent
Comment Utility

Sorry, badly phrased, you wouldn't see URL rewriting from anything done in DNS. e.g. rewriting www.property-usa.com to property.com. Once you're at the web server you can do whatever you need with the URLs, as long as the web server is willing to service the request.

Chris
0
 
LVL 7

Author Comment

by:DarkHill
Comment Utility
That's perfect, as long as CNAME will enable visitors to see the various sites as INDIVIDUAL sites, i.e. as if the files were uploaded to each domain individually (instead of them being served from the main domain) and me being able to do the usual mod_rewrite functions, etc. I would be happy... Is this  the case?
0
 
LVL 70

Accepted Solution

by:
Chris Dent earned 500 total points
Comment Utility

Provided your web-site content doesn't use absolute URLs, if everything is relative then the original URL used will not change.

Chris
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Most DNS problems are VERY easily troubleshot and identifiable if you can follow the steps a DNS query takes. I would like to share the step-by-step a DNS query takes from the origin to the destination. _____________________________________________…
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now