www vs no-www duplicate which should I use
-
site is no-www
I caught this in archives.
Will this by my fix?
Mike Davis Online Marketing Manager at McKesson
- May 22, 2013
Easy fix:
in your .htaccess file, use this
RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain.com
RewriteRule (.*) http://domain.com/$1 [R=301,L]Remember to replace domain.com with your domain name.
Enjoy! -
touristips
You can use either without any negative effects whatsoever. The .htaccess above is correct for non www. Also, in GWMT go in and select a preferred domain as a backup. So, since you are using non www, go to GWMT and top right corner you will see the tools wheel. Click it and go to site settings. Then select the non www.
This will insure all is correct.
Best
-
I would go for www. There are some technical reasons why you would want www's.
I don't know the full reason, but the way some hosts configure their caching, and cpanel cloudflare integration you may be forced to use www's if you want to take advantage of that. Take a popular host like Siteground for instance, if you wanted to use their supercacher and cloudflare you must use www's.
Sorry I cannot provide clear technical reasons, as I don't fully understand it, but I have had to deal with this in the past. Prior to running into these issues, I used to think it didn't matter and had all my sites with the non-www's. Its not a problem on the whole, but you should be aware in a very small number of cases it might be (of course you can just avoid any problems by avoiding that particular configuration, it just might be annoying thats all).
-
doesnt matter which one you go for so long as you stick with it to be consistent
most people these days seem to be going for non www option
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
-
Duplicate Content - But it isn't!
Hi All, I have a site that releases alerts for particular problem/events/happenings. Due to legal stuff we keep the majority of the content the same on each of these event pages. The URLs are all different but it keeps coming back as duplicate content. The canonical tag is not right (i dont think for this) egs http://www.holidaytravelwatch.com/alerts/call-to-arms/egypt/coral-sea-waterworld-resort-sharm-el-sheikh-egypt-holiday-complaints-july-2014 http://www.holidaytravelwatch.com/alerts/call-to-arms/egypt/hotel-concorde-el-salam-sharm-el-sheikh-egypt-holiday-complaints-may-2014
On-Page Optimization | | Astute-Media0 -
Duplicate content, is it ever ok?
I am building a large site for a client who sells physical products. I am using WordPress as my CMS (as a piece of background information). There are a few products that need to be listed in the sites hierarchy in multiple locations as such: Parent A Child 1 Parent B Child 2 Child 3 Parent C Child 1 I am concerned that having a product exist in multiple instances will cause indexing problems for that product. I can't be the only person to come across this issue, would love some feedback on the best practices for such an issue. Thanks in advance
On-Page Optimization | | Qcmny0 -
Using Subdomains to Increase Keyword Density?
I have a website on which I publish lots of news (sometimes up to 10 posts per day). I have a feeling that somewhat it is diluting the density of some keywords I am targeting. By using subdomains, would I avoid diluting keyword density too much? Of course, I am talking about a reasonable use of subdomains (maybe 1 or 2). What's your opinion?
On-Page Optimization | | sbrault740 -
301 redirected Duplicate Content, still showing up as duplicate after new crawl.
We launched a site where key landing pages were not showing up in google. After running the seomoz crawl it returned a lot of duplicate pages which may expalin this. The actual url of the page is /design and it was telling me the following were dupes: /design/family-garden-design
On-Page Optimization | | iterate
/design/small-garden-design
/design/large-rural-garden-design
/Design All of these URL's were in fact pointing to the /design landing page. I 301 redirected all of the pages so they all now resolve to /design After running another crawl the day after doing this it's still showing up as duplicate content on seomoz. Does seomoz evaluate the new changes right away?0 -
Should I use bold for the first few sentences of a text?
I would like to know if anyone knew if the relevance of a page changes if I bold the first few sentences. Our journalist wants to bold the first few sentences in every article to make it easier to read, how does that affect SEO?
On-Page Optimization | | mtueckcr0 -
Negatives to using custom sub domain?
So - being photographers, we have our main website, but also, we use a hosted service for all our client galleries (www.zenfolio.com) So, in effect, we have two websites: Our main informational website Our client gallery/proofing website The client gallery has back links to our main website - so, when people are viewing their gallery, they can easily get back to our main site. We also have thrown a few of our preferred keywords in there for SEO purposes. The gallery has thousands of pages which link back to the main site. So.. the client gallery URL can either be: http://ourbusinessname.zenfolio.com OR we can have it so it uses our own domain, such as: http://gallery.ourbusinessname.com The question is, which domain name will benefit the back links more? Our custom subdomain (which links to our main domain) or, using the Zenfolio domain (which is external to our site). Or, is there no real difference either way? Or.. do I make no sense?
On-Page Optimization | | blitzna100 -
Attributes vs. Separate Products?
I carry a line of products that come in 4 sizes and 15 colors. Is it better to have separate products for each combination (Red Large, Blue Small, etc), or a product for each size with attributes for the color, or something else? Also, should I put the brand name in each product name, or only put it in the category that contains that brand? Thanks.
On-Page Optimization | | teatable0 -
Absolute vs relative urls
Hello, Should absolute or relative urls to be used for the internal links? I heard mixed opinions on that: One source claims that web crawlers prefer absolute urls as they are more understandable Other source points that there is no difference for web crawlers what urls are used and relative urls are shorter which reduces the size of a page. Which option is recommended? Many thanks Darius
On-Page Optimization | | LinenMe0