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.
- The secure connection, everywhere. Every visit should use the encrypted connection, including anyone who types or follows the plain, unencrypted form of the address. The site sends those visitors to the secure version automatically and refuses to load the other way.
- Proof that the directions are genuine. Your domain works like a set of directions that tells each browser where your site lives. A setting called DNSSEC signs those directions, so the systems handing them out can prove they really came from your domain and were not swapped or tampered with on the way.
- A certificate that is watched. The security certificate is what lets a browser trust that the site it reached is yours. It should be set to renew on its own, well before it expires, and someone should get an alert if a new certificate for your domain ever shows up that you did not ask for. A surprise certificate is one of the earliest signs that somebody is impersonating a site.
- Modern connection security only. Browsers and websites agree on a secure way to talk before anything loads. The oldest versions of that agreement have known weaknesses and should be switched off, so your site only accepts connections it can actually protect, while every phone and browser your customers realistically use still gets in.
- Mail spoofing closed off. If your domain sends no email, it can say so, publicly, in its own records. That tells mail systems around the world that messages claiming to come from your domain are fake by definition, which gives them solid ground to reject scam mail that pretends to be you.
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.
- Changes take time to travel. When an address is connected or changed, the update spreads across the internet over a period of hours. Your network may have the new directions while a customer's network is still working from the old copy.
- A saved copy can be stale. Browsers and networks keep saved copies of pages so they load faster. Right after a redesign, a regular visitor's phone may serve up the old copy for a while, or an awkward mix of old and new, while somebody visiting for the first time sees the new site exactly as intended.
- One path can be broken on its own. One address form, or one network route, can be down while everything else works. That is precisely what our www gap was: the site was up the whole time, and one of its two front doors was not.
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.
- Are both addresses attached, and does each one load the site or land on it?
- Is one address set as the real one, with the other redirecting to it?
- Is the secure connection forced everywhere, and is the certificate set to renew on its own?
- Is the proof turned on that your domain's directions are genuine?
- Is somebody alerted if a new certificate for your domain appears?
- If your domain sends no mail, is it publicly set to say so?
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