I need to perform a dry run on Cname changes before go live. We already have existing website and would like to use the same domain name.
Is it possible to have more than 2 CNAMEs point to one URL?
Yes it is, but I think for SEO reasons it is not a good idea.
Better would be:
URL:xyz
Primary website: AA CNAME XY
Second site: BB redirect 301 to AA
Related
So what I am trying to get done is:
Have UserName/username.github.io served at https://subdomain.domain.com
Have Username/project served at https://project.domain.com
I have done these things:
Put a DNS record in cpanel: subdomain CNAME username.github.io.
Put a CNAME file subdomain.domain.com in UserName/username.github.io repo.
Put a CNAME file project.domain.com in UserName/project repo.
Now number 1 works: https://subdomain.domain.com is reachable and serves the content correctly.
However 2 does not work: DNS check fails:
Your site's DNS settings are using a custom subdomain, project.domain.com, that's set up as an A record.
We recommend you change this to a CNAME record pointing at [YOUR USERNAME].github.io.
For more information, see Learn more (InvalidARecordError).
We recommend you change this to a CNAME record pointing to subdomain.domain.com.
Now if I follow the suggestion then I get UserName/project served at subdomain.domain.com/project correctly, but that is not what I want.
I followed this question, of which this one should be a duplicate... but I guess there is something different, or something I am missing.
How do I fix this ?
Trying to put another DNS CNAME record: project CNAME username.github.io.
It should work.
so my issue is as follows:
I have a website, on one language pointing to a site subdomain.domain.com. I added CNAME records and it points perfectly. I now have another squarespace page that is the clone of the other one, only in a different language. Is there a way to point it to subdomain.domain.com/en , for example, and how would one go about doing this thru squarespace and my hosting sites webmin.
You can't use same subdomain for more than once. But as you own, and have access to that domain you can make different subdomain. So it can be: subdomain.domain.com and ensubdomain.domain.com or even you can have subdomain of subdomain en.subdomain.domain.com. You are probably aware where it goes. You can have something like: you.can.go.as.far.as.you.need.or.you.want.domain.com. ( be aware that you need to check with host first, what is included in your package or maybe do you have some limits)
Like my question asks - should the entire DNS/CNAME be the same for the domain?
Thanks!
Any domain can have its own CNAME record. In most practical situations, the 'main' / apex domain (For example foo.com) can usually not get a CNAME record. But otherwise every CNAME record is for a specific (sub-)domain, and every CNAME record can point to something else.
I've recently bought a domain for my website the naked domain is linked correctly to my website for example: http://domainname.com goes to my host space and loads my site. Although this works I can't seem to load the site when I type in http://www.domainname.com. Is there am extra step I need to take or is there something I need to activate on my domains DNS setting to make my site load when I add www.?
Yes.
You need to add an A type record for www subdomain.
If you let us know which nameserver provider you're using we can probably find you or write up a step by step short tutorial, if you need one.
Also, I removed "google" from your question title. You have not bought a "google domain", you simply bought a "domain"
On my DNS (Amazon Route 53) I have an A name:
mydomain.com -> IP Address
For www.mydomain.com do I use another A record www.mydomain.com -> IP Address or shall I use a CNAME that redirects www.mydomain.com -> mydomain.com?
Using the "dig www.arandomwebsite.com" command in Terminal I've looked at CNAME and A records of other live sites and noticed companies do it either way.
Note my site is low traffic.
There are 2 different questions to answer here:
Q1) Is the same web server answering requests for both websites?
If yes, the CNAME is slightly easier to maintain, since there's less to update when something changes. I.e. someday you may want multiple A records for your webserver, why maintain two lists?
Q2) Do you want both websites to serve content?
Be careful with this answer, you probably want to say "NO".
If they both serve all your content, Google will penalize you! Google sees "two" web sites with the same content. Each may get half the traffic, links, etc. Visitors will be confused when searching, bookmarking, etc. The simple way to fix it is to have one website do an HTTP 301 permanent redirect to the other one. (This cannot be done at the DNS level. The easy way is to do it at the virtual hosts level.)
If you say "yes" to question #2, you will at least want all your HTML to have a canonical URL.