InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

SEO tutorials

  • How to change twitter handle and its impact on traffic
  • How to do keyword traffic research using adword
  • How to make best use of Alexa
  • How to migrate your site from one domain to another
  • How to monitor 404 pages on your site
  • How to remove urls from Google index using webmaster tools
  • How to undo HTTP 301 site/domain redirect
  • Verify a web site in google search console
  • Wordpress SEO - beginner guide
  • Xml sitemap - quick introduction
  • robots.txt
  • www vs non-www domain which is better for your site?
 
  • Home
  • > Tutorials
  • > Web Development
  • > SEO

www vs non-www domain which is better for your site?

By admin | Last updated on Mar 20, 2016

I have been doing some research on whether to use www or not in domain of the urls of the site. If you setup wordpress using non-www url structure, then www urls are redirected to the non-www urls. Google also lets you choose which one is preferred domain in webmaster tools -> configuration -> settings:

google-webmaster-preferred-domain-option

Here are some site which I looked at to see if they are using www or non-www urls.

  1. techcrunch uses non-www domain
    techcrunch-preferred-domain
  2. twitter users non-www domain
    twitter-preferred-domain
  3. facebook uses www domainfacebook-preferred-domain
  4. youtube uses www domain
    youtube-preffered-domain

Some things to consider

  1. non-www domain reduces the length of your urls. You get more real estate when the url is displayed in search results.
  2. www domain may look more appealing to some people who are used to seeing www domains as in the internet early days most sites were using www in domain.
  3. From search engines perspective there is no difference. But you should be consistent. Supporting both domains without giving search engines a hint that they belong to same site, may lead to duplicate content.
  4. You can either do a HTTP 301 redirect from one domain to another or set canonical url in the page headers. e.g. if infoheap.com is your preferred domain then on www.infoheap.com this should be set as canonical url in header for home page (https://www.infoheap.com/):
    <link href="https://infoheap.com/" rel="canonical" />

    Similar canonical urls should be set for other pages.

 

Verdict:

It depends on personal choice and there is not much difference in the two options. But its better to choose one and be consistent.

Suggested posts:

  1. How to display wordpress page list with specific custom field value
  2. How to setup ssl (https) for your site on Ubuntu Linux
  3. Comic strip – Video ads and recursion
  4. Traceroute outcome from Bangalore to AWS Virginia and California
  5. Online tools to create comic strips
  6. How to undo HTTP 301 site/domain redirect
  7. Verify a web site in google search console (webmaster tools)
  8. Using python to analyze bots from apache logs
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged SEO, Tutorials, Webmaster
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress