Blog / Technical SEO /

Redirects on WordPress: 301, 302 and the mistakes I keep seeing

You change a slug from /best-tips-2021/ to /best-tips/ because the year looks dated. Fair enough. A month later, the post has dropped out of Google, the links other sites gave you point at a 404, and nobody knows why.

A redirect would have taken thirty seconds.

Redirects are one of those jobs that sound technical but are mostly about remembering to do them, and doing them the same way every time. Here’s what each type is for, how to set them up on WordPress, and the mistakes I see over and over.

The short version

  • 301: the page has moved for good. Use this almost every time.
  • 302: the page has moved for now and will come back. Use it rarely, and on purpose.
  • Redirect to the closest relevant page, not the home page.
  • Update your internal links to the new URL. Don’t make your own site go through redirects.
  • Keep redirects in place for a long time. Think years, not weeks.

301 vs 302 (and the other numbers)

A redirect is the server saying “not here, try this address instead”. The number tells browsers and search engines how permanent that is.

301: moved permanently

The old URL is gone, and the new one replaces it. Google treats the new URL as the one to index and passes along the signals the old one had built up, such as links.

Use it when you:

  • change a slug or permalink structure
  • merge two posts into one
  • move from http to https, or from www to non-www
  • move to a new domain
  • delete a page that has a clear replacement

302: found (temporarily elsewhere)

The old URL is coming back. Google tends to keep the original URL indexed.

Use it when you:

  • run a short promotion and send a page somewhere else for a week
  • take a page down for maintenance
  • test a new version of a page and plan to switch back

If you use a 302 and then forget about it for a year, Google will often start treating it like a 301 anyway. But don’t rely on that. Pick the right one.

307 and 308

These are the stricter modern versions of 302 and 301. You’ll see them in browser tools sometimes, especially 307 when a site forces HTTPS. For everyday WordPress work, 301 and 302 are the ones you choose.

And 410?

Not a redirect, but it belongs here. A 410 says “this is gone and isn’t coming back”. If you delete a page with no sensible replacement, a 404 or a 410 is the honest answer. That’s fine. Not every old URL needs a new home.

How to set up redirects on WordPress

Option 1: your SEO plugin

Rank Math’s free version includes a redirection manager. Yoast’s redirect manager is a Premium feature. If you already use one of these (I compared them in choosing a WordPress SEO plugin), check before adding anything else.

Option 2: the Redirection plugin

The free Redirection plugin is the one I’d suggest to most people. It:

  • lets you add a source URL and a target URL with the redirect type
  • can watch for slug changes and add redirects automatically
  • logs 404s, so you can see which old URLs people still hit
  • lets you export your redirects, which is useful when you move hosts

Just don’t run two redirect tools at once. Pick one and keep all redirects in it.

Option 3: the server

Redirects can also live in .htaccess on Apache servers, or in the server config on Nginx. They’re fast, and they’re right for site-wide rules like forcing HTTPS. For individual pages, a plugin is easier for most people to manage, and easier for the next person to find.

The mistakes I keep seeing

1. Changing slugs without any redirect

The most common one, as in the opening. WordPress does try to catch some changed post slugs on its own, but it doesn’t cover everything, and it won’t help with pages, categories or a permalink change. Add a proper redirect every time a published URL changes.

2. Redirecting everything to the home page

Delete a post, redirect it to the home page. Delete a category, home page. It feels tidy. Google often treats these as soft 404s: it sees a redirect to something unrelated and ignores it. Visitors are confused too. They clicked for a specific thing and landed on a generic page.

Redirect to the closest equivalent. If there isn’t one, let it 404.

3. Redirect chains

Page A redirects to B, which redirects to C, which redirects to D. It happens over years: a slug change, then an HTTPS move, then another slug change.

Each hop slows things down, and Google may stop following after a few. Fix chains by pointing A, B and C straight at D.

4. Redirect loops

A points to B, B points back to A. The browser gives up with a “too many redirects” error. This often happens when the WordPress Address in Settings → General disagrees with a server or CDN rule about www or HTTPS. Check those match first.

The redirect works, so nobody updates the menu, the footer or the twenty posts that link to the old address. Every internal click now takes a detour. Search your content for the old URL and update the links. (The broken links tools help here too, because most of them report redirects.)

6. Old URLs left in the sitemap

Your sitemap should only list the final URLs. If it lists URLs that redirect, you’re sending Google mixed messages. Most SEO plugins handle this automatically, but it’s worth opening your sitemap and checking.

7. Removing redirects too soon

“It’s been three months, we can clear these out.” Other sites, old bookmarks and social posts still link to the old addresses. Keep redirects for at least a year, and for important pages, just keep them.

8. Using a redirect where a canonical belongs

If two URLs both need to exist (say, a printable version of a page), a redirect is the wrong tool. That’s what canonical tags are for.

How to check a redirect

  • Your browser: visit the old URL. Do you land on the right page?
  • A redirect checker: there are plenty of free online “HTTP status” checkers that show each hop and its code. You want one hop, and a 301.
  • Search Console: the URL Inspection tool shows which URL Google has chosen as canonical.
  • The 404 log: in Redirection, check monthly for old URLs that still get hits.

A simple habit

Every time you change, merge or delete a published URL, ask three questions:

  1. Where should someone who lands here go instead?
  2. Is this permanent? (Almost always yes, so 301.)
  3. Which internal links need updating?

Write the answer in your change notes, the same way I suggested in the WordPress SEO checks I run first.

Open your redirect list today and look for anything pointing at the home page. That’s usually the quickest fix on the whole list.