Laravel: Accessors And MutatorsMay 11, 2020
The Research Of CodeMay 25, 2020
I’ve had this question pop up a few times recently, so I decided to write a blog about it. What is the real difference between websites that have www in their URL and websites that don’t have the www? Well, surprisingly not much. For starters, websites that do not have WWW in them are referred to as "Naked domains."
What are the pros and cons of www vs non-www
- Better for DNS.
- Allows you to set cookies.
- Longer to type in.
- WWW could become obsolete in the near future.
- Quicker and easier to search.
- Saves a small amount of data having to type in less.
- A shoter URL is preferred by Google.
- If you don't need cookies then you can use a non-WWW.
- Can't restict cookies.
- Dont have CNAME records.
- Cant' redirect from one server to another.
- Difficult for CDN's.
What are the effects on SEO?
Absolutely, none. There are no known benefits to choosing WWW versus non-WWW. Even Google says that it doesn't prefer one over the other. The most important thing to consider is that you need to be consistent and stick to one preferred URL. To read more what effects your SEO, read my previous blog post.
Not sure which one to use?
There are many top companies out there that prefer one URL over the other.
Let me know what you think or what your preference is in the comment section below.