What’s going on there?
The decision is entirely yours as to whether or not to use www, non-www or both, but whatever you choose stick with it! This will make you appear consistent to both the search engines and your visitors.
In tech-speak, your chosen domain is called your canonical domain.
Through a couple of different techniques, your web developer should ensure traffic to both variants arrives at your website. Please ensure you check this, it alarms me how often I come across a website where this isn’t the case!
Your web team should set up your hosting server to accept requests from both www and non-www.
When a request is received to the non-canonical domain, it will be forwarded to the canonical domain.
How does this work?
This task is completed so quickly the user will be unaware of what has happened unless they notice that www has been dropped from the address bar.
301 redirects also serve as a method to tell Search Engines what the canonical domain is so they update their index listing of your website. This is good SEO.
Your web developer can add a line of code within your website code that tells the visitor's browser and search engines what the canonical domain is.
If your canonical domain is http://www.example.com/blog the line of code will be:
The drawback with this method for this purpose is that the users will still arrive at the non-canonical website, but search engines will understand that the two sites are the same and only index your canonical domain.
The main purpose of this approach is to group a series of pages that cover the same topic and tell search engines so the different pages don’t compete with each other in their ranking index.
Option one, without a doubt. Option two allows you to effectively have two versions of your website and that isn’t a great User Experience.
As a site owner, ask the question and check that your website loads no matter if www is used or not.