Pixel Elixir Book a call
← All guides

Why Does a Website Work at One Address and Not the Other?

It happened on this site. Pixel Elixir was live and working at pixel-elixir.com, and a friend of the studio typed www.pixel-elixir.com into her browser and got a dead page. Nothing was broken in the site itself. The www address had simply never been hooked up to it, and until somebody typed it, nobody had a reason to notice.

Most owners never learn that the two addresses are separate, and there is a good reason: the big hosted builders attach both forms automatically and silently, so a site built there just works at both from day one. On setups where a person connects the domain by hand, each form is its own step, and a step that is easy to miss stays missed. This page explains how the two addresses work, the handful of invisible setup items that sit behind a site that just loads for everyone, and the short list of questions worth asking whoever built yours.

Two addresses, two separate hookups

Your domain has two common forms. There is the bare domain, like yourbusiness.com, and the www form, www.yourbusiness.com. People treat them as the same address with an optional prefix. Browsers do not. To a browser they are two different addresses, and each one has to be connected to your site on its own.

Each form also has to be covered by the site's security certificate, the thing behind the padlock in the address bar. If an address is attached but not covered by the certificate, visitors get a security warning instead of your site. And if an address was never attached at all, like our www form, it does not fail politely or forward anyone anywhere. It shows a dead page, and the customer has no way to know the site is sitting one word away, working fine.

One address should be the real one

Once both forms are hooked up, there is a second, quieter decision: which one is the real address. If both forms serve the full site, search engines meet the same pages at two addresses and treat them as two copies. Their records of your site, including the links other sites have made to your pages, get split between the copies, and neither copy shows the full picture.

The standard fix is to pick one address as the real one (the canonical address, in the jargon) and have the other one redirect to it. A redirect is not a dead end or a lesser version. Type the www form with a specific page after it, and you land on that same page at the real address, with the rest of the link intact. The same treatment applies to the raw hosting address every site gets from its host, the long project address that exists behind the scenes. It redirects to the real address too, so the site ends up with exactly one front door, and every road a customer might take leads through it.

The invisible safety layer

None of the rest of this page is visible on your site. It is the layer a careful web person sets up once and checks on a schedule, and it decides whether your site loads at all and whether the address a customer typed is really yours. If you did not build your own site, this is the part worth asking your builder about.

None of this changes a single word or picture on the site. It is all underneath, and it is most of the difference between a site that was published and a site that was properly connected.

Why it can work for you and not for a customer

You check the site and it loads perfectly. A customer across town gets an error. It is entirely possible that both of you are telling the truth, for a few ordinary reasons.

Before assuming the worst, run the same check a customer would get. Type both addresses, the bare one and the www one, and confirm each loads the site or lands on it. Do it on your phone with Wi-Fi turned off, so you are seeing the site over the mobile network, the way a customer standing on the street does. And if a change was just made, give it some time to settle before concluding it failed. Half the scares in this area are a change that had not finished traveling yet.

A short checklist worth asking about

A few questions cover most of the invisible layer. Any web person who set a site up carefully can answer yes to each of them.

Pixel Elixir runs these checks on every site it launches, this one included, and re-checks them on a schedule afterward. They are not the glamorous part of a website. They are the part that decides whether the glamorous part ever gets seen.

Pixel Elixir · pixel-elixir.com · (206) 234-1324