www - To use or not

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
Dennis
Rank 0 - Newcomer
Posts: 2
Joined: Mon Jul 18, 2022 3:26 pm

www - To use or not

Post by Dennis »

Hello,

After switching to a hosting provider that provides (free) certificates so now my 5 hosted domains are https and I'm preparing to print some flyers with QR Codes along with checking all the HTML links in my websites for consistency, I'm torn with the decision to use "www" in the domain name or not.

I tried Googling the question, but failed to get a decisive answer. I have learned the importance of sticking with the decided choice, but that dosen't help with the decision.

What are your thoughts?
Dennis
User avatar
Albert Wiersch
Site Admin
Posts: 3660
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: www - To use or not

Post by Albert Wiersch »

Hi Dennis,

I did some brief research on this too and there does not seem to be a definitive answer other than to be sure to pick one and stick to it (be consistent).

I used to go with "www" for websites but if I were to choose nowadays then I would seriously consider leaving it off for simplicity and because it's not as commonly used anymore. Browsers often don't even show the full URL anymore anyway, and many leave off (hide) the "www" part of the URL (although I like to tell the browser to show me the full URL (but most people probably don't set/use that option) ).

I think if I were deciding today that I would probably not use "www", but you should be able to go either way as long as you stay consistent and either use "www" all the time or never use "www".

Oh, and of course make sure your webserver redirects to either the "www" url or the non-"www" url depending on what you decide to use. You should not have the same page at both www.domain.com/page.html and domain.com/page.html . Choose which URL you want it to be and then if someone tries to access the other URL then have the server do a 301 (permanent) redirect to the correct URL.
Albert Wiersch, CSS HTML Validator Developer • Download FREE TRIAL for CSS HTML Validator Pro 2022
Dennis
Rank 0 - Newcomer
Posts: 2
Joined: Mon Jul 18, 2022 3:26 pm

Re: www - To use or not

Post by Dennis »

Albert,

Thanks for your feedback.

Dennis
Post Reply