Should I use www in my URL?

Should I use www in my URL?

Every website has one correct, or "real", URL that is the true address of the site. This could be either www or non-www.

When we set up new sites, we tend to choose a non-www URL -- it's shorter! So, if you're setting up a new site, that's our recommendation: non-www.

However, if you already have a site, you should use whichever is the "real" URL for the site, whether that is www or non-www. It's usually not worth changing to non-www if www is currently the "real" URL, since we'd need to set up a lot of redirects to make that work.

When more than one URL is used for a site, just one is the "real" address, and any others are redirected to the "real" address if visitors show up there. It's important to set these up correctly, because the www and non-www versions of a domain are seen as two different things.

For example, perhaps https://www.example.com is the "real" address. But if someone goes to https://example.com (maybe because they just typed the address into the browser) they will be sent to https://www.example.com (the real address).

It's important to use the "real" address as much as possible to avoid having too many redirects. So, if you're sending your link to someone, or if another site is going to link to your site, be careful to use the "real" address as much as possible.

If you're redirecting several URLs to your "real" URL and they don't seem to be working, it's worth checking that all variations are set up. For example, maybe you want to redirect http://example2.com to https://www.example.com. If it's not working, perhaps you're looking at https://www.example2.com. Also consider http and https, which can also affect this.

These kind of redirects are set up by the domain registrar, so we recommend you get in touch with the company you register your domain with to sort this out. We may also be able to help, just email support@performancefoundry.com and we'll let you know what information we need to investigate this.

    • Related Articles

    • When and how to use redirects

      When a post or a page on your site changes its URL, you need to create a redirect rule from the Old URL to the New URL so that users can get to the content. Never use a WordPress plugin to redirect Redirecting with a plugin adds about 200% to the ...
    • Can I have a custom URL for my CDN?

      Every Performance Foundry site has access to a fast, secure content delivery network, or CDN. Images, videos, and static resources like javascript and css files are copied to the CDN, to be served quickly from dozens of different geographical ...
    • When and how to use redirects

      When a post or a page on your site changes its URL, you need to create a redirect rule from the Old URL to the New URL so that users can get to the content. Never use a WordPress plugin to redirect Redirecting with a plugin adds about 200% to the ...
    • What is HSTS and should I use it?

      HSTS has been around for a while, but has recently become a hot topic of conversation in blogging forums.  What is HSTS? HSTS stands for HTTP Strict Transport Security. To put it simply, HSTS is another layer of security that makes sure that users ...
    • Is it safe to use Quantserve (Quantcast)?

      Some clients use more than one analytics service to learn more about their users. One of those services is Quantserve or Quancast.  The service in itself is safe to use; there is no record of malware being found in their code. Most adblockers will ...