Two A Records or one CNAME and one A Record for www / naked domain?
-
What's the best way to point a domain to an IP address?
Two A records one with host @ and the other with host www ?
One A record pointing to the naked domain
One CNAME record with host www pointing to nakeddomain.comSomething else?
Thanks so much! This seems so basic, but always seems to stump me.
I'm using WordPress, if it makes difference.
-
Hello?
-
Thanks Mike. I'm not sure if I totally understand though. I usually buy my domains from NameCheap and host elsewhere. So, for a domain "BaltimoreJewishScouts.com" It sounds like you're saying theoretically would be to have an a record that looks like this:
A Record : Host: @ Value: www.BaltimoreJewishScouts.com
But, i am pretty certain I would need another A Record to point the domain to the IP address.
Am I misunderstanding you?
All the best,
Adam -
Hi Adam,
It's best to consult with your web host on this one to ensure you're working within whatever restraints/quirks their system includes, but generally speaking, a single type A name record with the host @ specifying the domain including www subdomain should take care of it.
But again, you're probably best off following instructions from your web hosting provider and/or consulting their tech support team.
Happy Holidays,
Mike
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Domain authority a better metric then referring domain count?
Hi Guys, When reviewing competitors what would be a better metric - Referring domain count OR domain authority. From my understanding DA is a indication of the quality of the link profile. So if a site has a high DA this is a better metric for comparison then referring domain count. What are your thoughts on this? Cheers/
Intermediate & Advanced SEO | | cathywix0 -
Splitting and moving site to two domains - How to redirect
I have a client who is going to split their retail and wholesale business and rebrand the retail biz. So let’s say they are going to move everything from currentdomain.com to either retaildomain.com or wholesaledomain.com. The most important business for them is the retail site, so they want to pass on as much ranking power as they can from currentdomain.com to retaildomain.com. I see two choices here: We can 301 redirect all of currentdomain.com to retaildomain.com, and then redirect any wholesale pages to wholesaledomain.com. The advantage is that we can use GSC’s change of address tool to report the change to Google. The downside is that there is a redirect chain (2 hops) to wholesaledomain.com. Would this confuse Google? Or we can 301 redirect page by page from currentdomain.com to the appropriate page on either new site. This means no redirect chains but it also means that we can’t use GSC’s change of address tool. Which would you do and why? And is there another option that I'm missing? I appreciate any insights you can share.
Intermediate & Advanced SEO | | rich.owings1 -
Duplicate Content www vs. non-www and best practices
I have a customer who had prior help on his website and I noticed a 301 redirect in his .htaccess Rule for duplicate content removal : www.domain.com vs domain.com RewriteCond %{HTTP_HOST} ^MY-CUSTOMER-SITE.com [NC]
Intermediate & Advanced SEO | | EnvoyWeb
RewriteRule (.*) http://www.MY-CUSTOMER-SITE.com/$1 [R=301,L,NC] The result of this rule is that i type MY-CUSTOMER-SITE.com in the browser and it redirects to www.MY-CUSTOMER-SITE.com I wonder if this is causing issues in SERPS. If I have some inbound links pointing to www.MY-CUSTOMER-SITE.com and some pointing to MY-CUSTOMER-SITE.com, I would think that this rewrite isn't necessary as it would seem that Googlebot is smart enough to know that these aren't two sites. -----Can you comment on whether this is a best practice for all domains?
-----I've run a report for backlinks. If my thought is true that there are some pointing to www.www.MY-CUSTOMER-SITE.com and some to the www.MY-CUSTOMER-SITE.com, is there any value in addressing this?0 -
SEO value in multiple backlinks from same domain and from various sub-domains.
A site has a link to my site as one of their main tabs, which means whenever a user clicks through to another page within the site, my link - being a main tab - is there. This creates thousands of links from this site. How does Google treat this? Do we have a rough formula estimate. In other words, assume it creates 1,000 backlinks would the SEO value be around the same as if I had just 2 link total as a main tab, but on 2 different non-related sites? Or, does it actually count fully as 1,000 links? Links from various sub-domains. Several .EDU's are linking to my site. Different schools within the overall same university. Example: nursing.abc.edu links to my site, but so does business.abc.edu. For SEO does that count as much as if I had links from complete non-related universities, or would Google evaluate that these links are related (since same main domain) and that will discount any links more than 1 to some extent? If discounted, then what do we estimate the discount to be? thank yoyu
Intermediate & Advanced SEO | | knielsen1 -
Splitting one page into two
Good day everyone! If you have a page that ranks well for two highly competitive, yet mutually irrelevant, terms, but that the page will be split into two as part of a website redesign, would you 301 it to term X or term Y? What criteria do you use? Are there any other things I should do to avoid the wrong page ranking for the wrong term? I don't want users searching for term X to end up in page Y. Thanks!
Intermediate & Advanced SEO | | andrep0 -
Does having a file type on the end of a url affect rankings (example www.fourcolormagnets.com/business-cards.php VS www.fourcolormagnets.com/business-cards)????
Does having a file type on the end of a url affect rankings (example www.fourcolormagnets.com/business-cards.php VS www.fourcolormagnets.com/business-cards)????
Intermediate & Advanced SEO | | JHSpecialty0 -
Merging several domains into one, a redirection question
Hi, We have a client who recently acquired a bunch of domains in all kinds of niches, each domain has a WordPress site on it, with content and backlinks. Clients wants to "merge" all these domains into categories in his "main website", moving content and "moving" backlinks as well. The syntax we came up with is the following: (sample domains of course)
Intermediate & Advanced SEO | | MandLoys
potatomixers.com will be updated with .htaccess 301 redirect:
Redirect 301 /fastpotatomixer.htm http://www.mainwebsite.com/home-appliances/fastpotatomixer 1.) I'm not sure about the domain's root though. Where would I redirect potatomixers.com, to mainwebsite.com/home-appliances? Won't that be a problem that the new one is a "larger" category that has other posts as well, not only potatomixers? 2.) If this gets into the .htaccess (with several other lines for the other content as well of course), won't the first line "override" all the other ones? Redirect 301 / http://www.mainwebsite.com/home-appliances/
Redirect 301 /fastpotatomixer.htm http://www.mainwebsite.com/home-appliances/fastpotatomixer
Redirect 301 /easypotatomixer.htm http://www.mainwebsite.com/home-appliances/easypotatomixer etc. Thanks!0 -
Does duplicate content on a sub-domain affect the rankings of root domain?
We recently moved a community website that we own to our main domain. It now lives on our website as a sub-domain. This new sub-domain has a lot of duplicate page titles. We are going to clean it up but it's huge project. (We had tried to clean it even before migrating the community website) I am wondering if this duplicate content on the new sub-domain could be hurting rankings of our root domain? How does Google treat it? From SEO best practices, I know duplicate content within site is always bad. How severe is it given the fact that it is present on a different sub-domain?
Intermediate & Advanced SEO | | Amjath0