CNAME question

Posted on 2009-07-06
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,, etc. so if I visit 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 Would I add a CNAME record for these 5 domains so that www points to
Question by:DarkHill
  • 3
  • 2
LVL 70

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.


Author Comment

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:

LVL 70

Expert Comment

by:Chris Dent
ID: 24792309

Sorry, badly phrased, you wouldn't see URL rewriting from anything done in DNS. e.g. rewriting to 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.


Author Comment

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?
LVL 70

Accepted Solution

Chris Dent earned 500 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.


Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Retire Active Directory server 3 56
Mimecast Bounce 3 48
Autodiscover not working when outside the organization 5 61
SPF record. 2 16
This article is intended as an extension of a blog on Aging and Scavenging by the MS Enterprise Networking Team. In brief, Scavenging is used as follows: Each record in a zone which has been dynamically registered with an MS DNS Server will have…
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to:…

911 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

21 Experts available now in Live!

Get 1:1 Help Now