Skip to content
24/7 support · 7-day money-back guarantee · Free plan, no card neededSee plans

Blog › WordPress SEO ›

WordPress redirect strategy: 301, 302, 307, 410 and 451 explained with real-world rules

Cover image: WordPress redirect strategy: 301, 302, 307, 410 and 451 explained with real-world rules

Redirects are the quiet maintenance work that protects years of accumulated search value. Every time you rename a page, restructure categories, merge articles, change a domain or retire a product, you decide what happens to the old URL. If you decide nothing, visitors and crawlers get an error, links pointing to the page stop helping and the page eventually drops from the index. If you decide well, people land on something useful and the old page’s signals move to the new one. This guide explains the status codes, when to use each, how to plan a redirect map, how to implement redirects on WordPress without breaking things, and how to monitor results.

Contents of the guide: WordPress redirect strategy: 301, 302, 307, 410 and 451 explained with real-world rules
The main sections of this guide.

What a redirect actually does

When a browser or crawler requests a URL, the server responds with a status code. A redirect response tells the client that the content lives elsewhere and gives the new address. Browsers follow it instantly. Crawlers record the relationship: the old URL redirects to the new one. Over time, search engines replace the old URL in their index with the new one and, in general, consolidate signals such as links to the old URL toward the destination. Google has said that 301 and 302 redirects both pass signals, though the intended permanence affects which URL gets indexed.

The status codes and when to use them

301 Moved Permanently. The default for permanent changes: new URL structure, merged pages, HTTPS migration, domain changes. It tells search engines to treat the destination as the new canonical address.

302 Found and 307 Temporary Redirect. For temporary moves, such as sending visitors to a seasonal page for a few weeks or testing a variant. Search engines may keep the original URL indexed. Use 307 when the request method must be preserved. Avoid using temporary redirects for permanent moves, which is a common mistake caused by default settings.

308 Permanent Redirect. A permanent redirect that preserves the request method. Rarely needed for normal websites.

410 Gone. For content removed on purpose with no replacement. It tells crawlers that the page is gone for good, and they tend to drop it from the index somewhat faster than with a 404. Use it for retired content you will not bring back.

404 Not Found. The page does not exist. This is normal for URLs that never existed or removed pages without a replacement. A healthy site has some 404s; the problem is 404s for URLs that have links or traffic.

451 Unavailable For Legal Reasons. For content blocked due to a legal demand. Uncommon, but available in SEOStrive’s redirect manager alongside 301, 302, 307 and 410.

Soft 404. A page that says not found but returns a 200 status, or that is so thin it looks like an error. Search engines treat these as errors. Make sure real error pages return proper status codes.

Decide where each old URL should go

The rule is simple: send each old URL to the most relevant equivalent. If a page was replaced by an updated version, redirect to it. If three articles were merged, redirect all three to the merged article. If a product was discontinued and a successor exists, redirect to the successor. If there is a close category, redirect there. If there is truly nothing relevant, a 410 or 404 is more honest than a redirect to the homepage.

Redirecting many unrelated URLs to the homepage is a mistake. Search engines may treat it as a soft 404, and visitors who expected specific content get confused and leave. Reserve homepage redirects for cases where the homepage really is the best equivalent.

Build a redirect map

For any change affecting more than a handful of URLs, create a spreadsheet with columns for the old URL, the new URL, the reason, the status code and the notes. Start from a crawl of the old site, which gives you a complete URL list, and add URLs from Search Console and analytics so you include pages with traffic, and from backlink data so you protect pages with links. Prioritize by value: pages with the most traffic and links come first.

Check each mapping manually for the top pages and spot-check the rest. Make sure destinations return 200, are indexable and are the canonical versions, not redirects themselves. Avoid mapping to URLs that will themselves change.

Avoid chains and loops

A chain is when A redirects to B and B redirects to C. Each hop adds delay and risk, and Google follows only a limited number of hops. Update A to point directly to C. A loop is when A redirects to B and B back to A; the page becomes unreachable. Test redirects after creating them and review the whole list regularly. Chains often arise over time as sites are migrated multiple times, so audit older redirects after any new migration.

Implementing redirects on WordPress

There are several places to create redirects, and mixing them without a plan creates confusion.

In your SEO plugin or a redirect plugin. The easiest option for most sites. SEOStrive includes a redirect manager with 301, 302, 307, 410 and 451 codes and a 404 monitor. Pro adds regex pattern rules, automatic redirects when you change a post slug, and CSV import and export. This is the right choice for page-level changes and ongoing maintenance.

At the server level. Rules in the web server configuration or in the htaccess file run before WordPress and are very fast. Use them for sitewide rules such as HTTP to HTTPS, www to non-www and bulk patterns for big migrations. Be careful with syntax; a mistake can take the site down. Back up the file before editing.

At the CDN or firewall. Some services support redirect rules at the edge. Useful for large sites, but document them, because they are invisible from WordPress.

In the theme or code. Avoid, unless necessary, because they are hard to find later.

Choose one primary place for page-level redirects and one for sitewide rules, and write down which is which.

Regex redirects and patterns

When many URLs follow a pattern, such as an old category base that changed, a single pattern rule can handle thousands of URLs. Regex is powerful and dangerous: an overly broad pattern can redirect URLs you did not intend. Test with a list of sample URLs before enabling, order your rules from specific to general and keep the rules documented.

Redirects when you change slugs

The most common cause of broken links in WordPress is editing a post slug or moving a post to a different category structure without a redirect. Turn on automatic redirects on slug change if your plugin supports it, and make it part of your editing workflow to check for redirects whenever a URL changes. After changing a slug, update internal links to the new URL as well, so users do not pass through redirects unnecessarily.

Redirects and canonical tags

Redirects and canonical tags are different tools. A redirect sends users and crawlers to another URL. A canonical tag tells search engines which of several accessible URLs is preferred. Do not use canonical as a substitute for redirects when you want visitors to land on a specific URL. And do not point a canonical to a URL that itself redirects. Keep sitemaps and internal links consistent with the final canonical URLs.

Monitor 404s

Your 404 monitor shows which missing URLs are being requested and how often. Treat it as a to-do list. A URL with a steady number of hits from real referrers deserves a redirect. A URL hit by bots probing for vulnerabilities, such as paths for admin tools you do not use, can be ignored. Review it weekly after any change and monthly in steady state. In Search Console, check the Pages report for not found URLs and use the sitemap and link report to find where they are linked internally. Fix the source of internal broken links first.

Special situations

HTTPS and hostname migrations. Use a single sitewide 301 from every non-preferred variant to the preferred URL, preserving the path.

Domain changes. Redirect every old URL to the matching new URL, keep the old domain active for as long as possible and use the Change of Address tool in Search Console.

Retiring a product or event. Redirect to a successor or category, or return 410 if there is nothing relevant. For seasonal items, consider keeping the page.

Merging posts. Choose the strongest article, combine the best content, redirect the others and update internal links.

Attachment pages. Redirect them to the parent post or media file to avoid thin pages.

Query parameters. Decide how tracking parameters are treated; use canonical tags for variants, not redirects, unless you have a reason.

Performance and caching

Redirects happen before the page loads, so many redirects slow down visitors. Page cache and CDN behavior can interact: make sure redirects are not cached incorrectly, and clear caches after changing rules. Test with a tool that shows the full redirect chain and status codes.

How long to keep redirects

For pages with links or traffic, keep redirects for at least a year, and often indefinitely. Removing a redirect too soon leaves old links broken. For low-value URLs, you can retire the redirect after you see no traffic for a long period. Document your decisions.

A redirect checklist for any change

  1. List the old URLs affected.
  2. Decide the destination or status for each.
  3. Implement in the right place.
  4. Test samples for status codes and chains.
  5. Update internal links and sitemaps.
  6. Monitor the 404 log and Search Console.
  7. Keep notes for future audits.

Use a site audit to detect chains, loops and broken links, and the meta checker to confirm the destination pages have correct tags.

Frequently asked questions

Does a 301 lose link value? Google has said that redirects pass signals, so a clean redirect keeps most value, but long chains and irrelevant destinations do not help.

Should I redirect deleted posts to the homepage? Usually not. Use the closest relevant page, or 410 if none.

Is 302 bad for SEO? Only when used for permanent moves. For genuine temporary changes, it is correct.

Can I use a plugin for all redirects? For most sites, yes. Use server rules for sitewide patterns.

How do I find broken links? Use the 404 monitor, Search Console and a broken link detector.

Keep reading

Comments

Leave a comment

Check your own site

Run a free audit and see what to fix first.

Run a free audit