Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CNAME question

Posted on 2009-07-06
5
Medium Priority
?
407 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

877 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