All Essays

Essay 152

Redirects explained: 301 vs 302 and the difference between moving and being away

2026-10-01

A redirect states intent: the permanent kind files the divorce from the old address, the temporary kind books a holiday, and mixing them leaves a site apologizing forever.

A page has lived at one address for years, the move comes, and someone types the old address out of habit. What happens next is a redirect: the server answers, this no longer lives here, go there. It looks like a courtesy, and it is one, but underneath the courtesy sits a declaration the site makes to everything that visits, links, and crawls: a statement about whether the move is real.

There are two kinds because there are two intents. The permanent kind (what the industry calls a 301) says the move is real: the old address is retired, and whatever the page earned in links and in standing should travel with it to the new one. The temporary kind (a 302) says the page is away, not gone: keep the old address alive, because the page intends to come back to it. The seasonal closure and the divorce are different events, and the web keeps a different word for each.

The honest framing is that you are writing intent, and the code must match the sentence you mean. Use the temporary kind for a permanent move and the site spends years quietly apologizing: the old addresses keep ranking beside the new ones, split the credit between them, and keep everyone guessing which one is home. The move happened. The paperwork never said so.

Three failures account for most of the pain. The migration done entirely with temporary redirects, discovered years later when the old addresses still surface beside the new ones and nobody remembers why. The redirect chain, where one address hops through three stops before arriving, and every hop is a small tax paid in speed and in trust. And the deleted page pointed at the home page, which is the web equivalent of returning a letter to the post office: the visitor asked one question and was handed a lobby.

The practice: permanent moves get permanent redirects, aimed directly at the closest living page, not at the lobby. Temporary absences, a seasonal page or a pause for maintenance, get temporary ones, so the return is clean when the page comes back. And after any change, walk the important addresses and read the path: a well-built redirect is one hop, from where the visitor aimed to where the answer lives.

We treat redirects as part of a site's honesty, the same ledger as a corrected address on a shop door. Guidance, not guarantees: how any particular search engine weighs each kind, and what your server or platform makes easy or awkward, belong to the documentation of the tool in your hands and to whoever audits the migration with you. Say what you mean. One hop. Then let the old addresses rest.

FAQ

Direct, unambiguous answers

What is the difference between a 301 and a 302 redirect?

The difference is the intent each one states. The permanent kind says the move is real: the old address is retired, and whatever the page earned in links and standing should travel to the new one. The temporary kind says the page is away, not gone: keep the old address alive, because the page intends to come back to it.

What happens if I use a temporary redirect for a permanent move?

The site spends years quietly apologizing. The old addresses keep ranking beside the new ones, split the credit between them, and keep everyone guessing which one is home. The move happened, but the paperwork never said so, which is why migrations done entirely with temporary redirects are discovered years later.

Where should a deleted page's redirect point?

At the closest living page, not at the home page. Sending every deleted page to the lobby is the web equivalent of returning a letter to the post office: the visitor asked one question and was handed a building. Aim the redirect directly at the page that answers what the old one answered.

How many hops should a redirect chain have?

One. A well-built redirect is a single hop, from where the visitor aimed to where the answer lives, and every extra hop is a small tax paid in speed and in trust. After any change, walk the important addresses and read the path yourself instead of assuming it.

Next step

Web Platforms

Web platforms and engineering (bilingual, RTL-native, fast, and built to be found) on the same stack that runs this site and our ventures.

Start an order, request a private consultation, or simply ask a question: one WhatsApp message in Arabic or English opens the conversation.

Talk on WhatsApp