Type your address with and without the www on a computer and a phone. If one fails, add the missing record, set the hosting to answer to both names, and redirect one to the other.

Half an address

A customer reads a bakery's web address off its paper bag and types it into her phone without the www, and the phone says the server cannot be found.

At the bakery, staff try it on the shop computer and the site loads perfectly. They typed the full address, with the www, as they always have.

Both of them are right. The address works one way and not the other, and plenty of people leave the www off.

Two names, two records

To the internet, the address with www and the address without it are two different names. Each needs its own entry in the domain's records, the DNS, pointing it at the web server.

Whoever set up the bakery's domain added the entry for one name and left out the other. The site exists; one of its two names simply leads nowhere.

Email can work perfectly at the same time, because mail uses separate records. That is how a domain can look healthy for years with half of its web setup missing.

Testing both versions

Test it before customers do. Type each version in full, rather than picking it from a list of past sites, and try:

Write down exactly what each one did. An error saying the server cannot be found points to a missing record; a page from the host instead of your site points to the server's settings.

The record to add

If the bare name fails, it usually needs an address record, called an A record, pointing at the web server's numeric address. DNS rules do not allow the bare name to be an alias.

If the www name fails, it needs either an A record of its own or an alias, called a CNAME, that points it at the bare name.

The records live with whoever hosts the domain's DNS, which is not always the company hosting the website. Find out where they are before changing anything.

New records reach most networks within hours, although some take longer to notice. Test again the next day before deciding the change has not worked.

The web server has to agree

A record only points a name at a server. The server also has to be told that the site answers to that name, or it shows its own default page or an error.

On shared hosting this is a setting in the hosting account, often listed as an alias or an extra domain. Both changes belong with whoever manages the domain and hosting, since a mistake can take the site down.

A site with a security certificate needs it to cover both names as well, or one version brings up a warning instead of the page.

One version, then a redirect

Once both names work, choose one as the main address and send the other to it with a permanent redirect.

When both versions serve the same pages, search engines may treat them as two copies of the site, and links to it are split between them. A permanent redirect tells them which address is the real one.

Webmaster Tools has a preferred domain setting as well, but it speaks only to Google. The redirect works for every search engine and every visitor.

Visitors gain from it too. Whatever they type, they arrive at the same address, and that is the one they bookmark and share.

A worked example

In Terrace, a scrap metal dealer buys copper, brass and steel from contractors and the public, and rents roll-off bins to job sites across the area.

Its domain, without the www, is painted on every bin, on the trucks and on the scale house. Typed that way, it led to an error.

The site had been set up years earlier with a record for the www name only. Staff reached it through a bookmark, so no one at the yard had typed the short version.

The bare name was given an A record pointing at the web server, and the hosting account was set to answer to both names. The www version now redirects permanently to the short one, the version on the bins.

The address a contractor reads off a bin at a job site is now the address the site lives at, so what people type, bookmark and pass along all match.

Addresses in print and in speech

Look at how the address appears on the sign, the cards, the vehicles and the ads. Whichever form you print is the form people will type.

Radio ads and word of mouth matter too. A spoken address is almost always the short one, because the www is a mouthful.

If print shows the short version, make it the main address and redirect the www version to it. Never print a version of the address you have not tested.

The counter-case

If every printed address and every link uses the www version, and the short form has never been shared, the missing record may never have lost the business a visit.

A site that is about to be replaced can also wait for the new build, provided the new one is set up for both names from the start.

But people drop the www on their own, and some type only what they remember. One record and one redirect, set up by whoever runs the domain, close the gap.

Making both versions work

  1. Type the bare name on a computer and a phone.
  2. Type the www version on both as well.
  3. Note what each one shows, including any error.
  4. Add the missing record in the domain's settings.
  5. Set the hosting to answer to both names.
  6. Redirect one version permanently to the other.
  7. Check the address on your signs and cards.

Step six finishes the job the first setup left half done. With one version redirecting to the other, every visitor, link and search engine ends up at the same address, however it was typed.

On many servers that redirect is one line in a settings file, and the server settings file that took the whole site down shows how a single pasted line there can stop every page.


Frequently asked questions

Why does my site load with www but not without it?

The two versions are separate names, and each needs its own entry in the domain's records. One of them was never added, so it leads nowhere.

Why does email still work when the site does not?

Mail uses its own records in the domain's settings. They can be correct while the web record for one version of the name is missing.

Which record does the bare name need?

Usually an A record pointing at the web server's numeric address. The www name can have its own A record or be an alias of the bare name.

Why redirect one version to the other?

So visitors, links and search engines all end up at one address. Without it, the same pages appear at two addresses and links to them are split.

Which version should be the main address?

Usually the one you print on signs, cards and vehicles, since that is the version people type. Then redirect the other version to it permanently.

How long does a new record take to work?

Most networks see it within hours, though some take longer. Test again the next day, on a phone over mobile data and on a computer.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Your address working only one way?

Tell us your domain, and we will test both versions and add the missing record and the redirect properly.

Start a Conversation