Skip to content

What www means and what a URL is

· The AYT team · 5 min read

Close-up of a vintage globe with its brass meridian ring

www stands for World Wide Web, the system of linked pages you browse on the internet. In a site's address, www is just a subdomain: www.example.com and example.com are two different names that usually lead to the same site. A URL (Uniform Resource Locator) is the full address of one page, such as https://www.example.com/blog/post. It tells the browser which protocol to use, which server to go to and which page to ask for.

Below are the parts of a URL, what www still does today, and how to choose between the www and the bare version, so your visitors and your Google rankings aren't split between two addresses.

The parts of a URL

The parts of a URL: the https protocol, the www subdomain, the domain name, the .com extension, the path, the query and the fragment

Take https://www.example.com/blog/post?page=2#comments:

  1. https:// is the protocol. HTTPS means the connection is encrypted; what that guarantees, and what it doesn't, is in our guide to HTTPS and SSL.
  2. www. is the subdomain. The domain's owner can create as many as they like: blog., shop., mail..
  3. example is the domain name, the part you register and pay for every year.
  4. .com is the extension (the TLD, top-level domain). Each extension has its own registry: Verisign runs .com, ROTLD runs .ro.
  5. /blog/post is the path, the page within the site.
  6. ?page=2 is the query, used by searches, filters and pagination.
  7. #comments is the fragment, which jumps to a section of the page. It stays in the browser and never reaches the server.

Where www comes from, and whether you still need it

In the early internet, a company ran several servers on one domain, each with its own job: mail. for email, ftp. for files and www. for web pages. The prefix said what the server did. Today you don't need it: one server answers both example.com and www.example.com, and browsers often hide the prefix in the address bar.

One technical advantage is left. Many DNS providers don't allow a CNAME record on the bare domain (example.com), which some CDNs need, while on www you can always add one. For an ordinary WordPress site, either version is fine.

www or no www: how to choose

Which version you pick matters less than sticking to one. If both show the site without a redirect, Google may treat them as two sites with the same content, and links from other sites get split between them.

  • Pick the main version. If the domain already has traffic and links, keep the one it has used so far.
  • Redirect the other version with a 301 (permanent) redirect, page by page: www.example.com/contact should lead to example.com/contact, not to the home page.
  • Use the same version in WordPress, under Settings → General, in "WordPress Address" and "Site Address".
  • Check that the SSL certificate covers both names. Otherwise, anyone who opens https://www.example.com sees an error before the redirect can happen.
  • In Google Search Console, add a "Domain" property, so you see the data for every version in one place.

How the browser finds the site

When you type an address, the browser asks DNS which IP address the name www.example.com has. DNS works like a phone book: the name is for people, the IP address (such as 203.0.113.10) is for computers. The answer comes from the domain's records: an A record (or AAAA, for IPv6) for example.com and usually another one for www. The browser then connects to that IP and asks for the page in the URL's path.

When you move a site to a new host, these are the records you change. The steps, in order, are in our guide to moving a WordPress site with no downtime.

How to read an address and avoid fake sites

The part that matters is the domain: what comes before the first /, right to the left of the extension. In https://yourbank.com.account-check.net/login, the real domain is account-check.net, and "yourbank.com" is just a subdomain chosen by whoever made the page. Attackers also use letters that look alike (rn for m, the digit 0 for the letter o) or the same name with a different extension. More signs of a scam are in our guide to phishing and fake emails.

FAQ

Do I have to type www to open a site?

No. If the site is set up correctly, you end up in the same place with or without www.

What's the difference between a domain and a URL?

The domain is the name (example.com). The URL is the full address of a page, with protocol, domain and path.

Does www matter for SEO?

Not as a ranking signal. What matters is having one main version, with the other sending visitors to it through a 301 redirect.

At AYT

In the AYT WordPress hosting panel you choose, for each domain, whether the site opens with or without www, and the other version automatically sends visitors to the same page on it with a 301 redirect. The SSL certificate is issued free for both names, and you edit DNS records in the same panel or keep them in your own Cloudflare account.

More articles

All articles