Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CNAME question

Posted on 2009-07-06
5
Medium Priority
?
401 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 71

Expert Comment

by:Chris Dent
ID: 24792244

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
ID: 24792295
>> 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 71

Expert Comment

by:Chris Dent
ID: 24792309

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
ID: 24792352
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 71

Accepted Solution

by:
Chris Dent earned 2000 total points
ID: 24792378

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

715 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