Farooq Dad Khan

14 Oct 2026 · 5 min read

Why I stopped using 301 redirects blindly

I once used a 301 redirect, and it became one of the biggest regrets of my career.

It was humiliating. I fixed the mistake right away. I removed the 301 from the server myself. But every time my client opened their website, their browser still sent them to the wrong one.

To them, it looked like I hadn't fixed anything. To me, it looked impossible. The server said one thing, and their browser did another.

It took me a while to understand why. The answer was one small number most people never think about: 301. This is how it happened, why it was so hard to undo, and what I'd do differently today.

What I was asked to do

The client had three websites. Let's call them A, B and C.

The request was simple: send everyone who visits website C to website B. A redirect. The kind of thing that takes a minute.

But I was new to the platform that hosted these sites, so I asked their support team to set it up. Somewhere between my message and their work, the request got mixed up. They redirected website B to website A instead.

And they made it permanent.

Nobody noticed at first. As long as no one visited website B, nothing looked wrong. Then the client visited website B, and landed on website A.

They were angry, and honestly, they had every right to be. They had asked for something simple, and now one of their websites was sending its visitors somewhere else.

First, what a redirect is

A redirect is the website telling your browser: "What you're looking for isn't here. Go there instead."

Think of it like moving house. When you move, you leave a note with the post office: please send my letters to my new address. There are two ways to leave that note.

302 — "I've moved for now." The browser follows the note today, but it comes back and checks the old address next time. Maybe you've moved back. Maybe the note has changed.

301 — "I've moved forever." The browser follows the note, and then it writes your new address in its own notebook. Next time, it doesn't even go to the old address. It goes straight to the new one.

That notebook is the whole story.

Why I couldn't take it back

As soon as I understood what had happened, I opened FileZilla, went into the server and removed the redirect. On the server, website B was back to normal.

But for the client, it wasn't.

Their browser had already seen that 301. It had written in its notebook: website B has moved to website A, forever. So when they typed in website B again, the browser didn't ask the server anything. It went straight to website A. My fix was sitting on the server, and the browser never came to see it.

I thought this was in the cookies. It isn't, and this is the part I want you to remember.

A permanent redirect is kept in the browser's cache, the place where it stores pages and images so it doesn't have to download them twice. By the rules of the web, a 301 can be cached by default. If the server doesn't say how long to keep it, the browser can keep it with no end date at all. Closing Chrome doesn't clear it. Restarting the computer doesn't clear it. It stays until the cache is cleared or something pushes it out.

And here's the hardest part: there is nothing you can do from the server to reach into someone's browser and erase that note. The browser simply never asks the server again.

How I got out of it

In the end, the only way was to ask the client to clear it themselves.

I wrote them an email, step by step. In Chrome it goes like this:

  1. Press Ctrl + Shift + Delete (on a Mac, Cmd + Shift + Delete).
  2. Set the time range to All time.
  3. Tick Cached images and files. This is the one that holds the redirect.
  4. Click Delete data.
  5. Open website B again.

If you only want to check whether the problem is in your own browser, open the site in an Incognito window first. Incognito starts with an empty cache, so if the site works there, the redirect is stuck in your browser, not on the server.

The client followed the steps, website B opened, and the storm passed. But I've never forgotten how helpless it felt to fix something and still watch it stay broken.

But here's the thing

A 301 isn't a setting. It's a promise.

When you send a 301, you are telling every browser that visits: this will never change, so don't bother asking me again. And browsers believe you. They believe you for a very long time.

So now I treat permanent redirects the way I'd treat a tattoo.

When you should use which

Use a 302 (temporary) when:

  • you're testing a redirect for the first time,
  • a page is down for maintenance, or a sale page is only up for a few weeks,
  • you're not completely sure yet.

Use a 301 (permanent) only when the move is truly forever:

  • you moved to a new domain and the old one is never coming back,
  • you moved your site from http to https,
  • you picked one version of your address, with www or without it, and the other should always point to it,
  • a page has a new URL for good, or two pages were merged into one.

Permanent redirects also tell Google to replace the old address with the new one in its results. That's exactly what you want when the move is real, and exactly what you don't want when it's a mistake.

And a simple habit that would have saved me: start with a 302, test it in an Incognito window, and only change it to a 301 when you're sure. On an Apache server, the difference is literally one number in your .htaccess file:

# Test first: temporary, browsers will keep checking back
Redirect 302 / https://website-b.com/

# Only when you're sure: permanent, browsers will remember
Redirect 301 / https://website-b.com/

One number. That's all that stood between a one-minute task and an angry client.

Before you make something permanent,
make sure you want it forever.
Browsers don't forget easily,
and neither do clients.

— Farooq
October 2026