Technical SEO

How to Redirect Broken Pages in WordPress (Plugin and .htaccess)

By BacklinkPrice Team · Nov 22, 2026 · 6 min read
Illustrated cover for How to Redirect Broken Pages in WordPress (Plugin and .htaccess)

Find 404 pages, pick the best target for each, add 301 redirects with a plugin, SEO plugin or .htaccess, and test so links and visitors land in the right place.

To redirect broken pages in WordPress, find the URLs returning 404 errors, choose the closest live page for each one, and add a 301 redirect using a redirect plugin such as Redirection, your SEO plugin's redirect manager, or rules in your .htaccess file.

Then test every redirect, update internal links to point straight at the new URL, and keep monitoring your 404 log.

Key takeaways

  • Google recommends permanent server-side redirects when a page has moved for good.
  • The free Redirection plugin manages 301 redirects and logs 404 errors without editing server files.
  • Redirect each broken URL to the most relevant live page, not to the homepage by default.
  • Some plugins keep only the last 50 404 errors by default, so check logs often.
  • After redirecting, update internal links so they point directly to the final URL.

Three ways to redirect broken pages in WordPress

MethodSkill neededBest forWatch out for
Redirect plugin (e.g. Redirection)LowMost sitesPlugin conflicts, log size
SEO plugin redirect managerLowSites already using oneFeature may be in paid tier
.htaccess rules (Apache)MediumDevelopers, bulk rulesA typo can break the site

Step 1: Find broken pages

Start with the URLs people and Google actually request.

  • Check the Pages report in Google Search Console for "Not found (404)" URLs. Google's Page indexing report help explains each status.
  • Turn on 404 logging in a redirect plugin to capture what visitors hit.
  • Crawl your site for internal links that point to 404 pages.
  • Check backlink tools for external links to dead URLs; see how to find broken backlinks.

Step 2: Choose the right target

Relevance beats convenience.

Broken URL situationBest action
Page moved to a new URL301 to the new URL
Content merged into another page301 to the merged page
Close replacement exists301 to the closest match
Product or post gone, no replacement301 to the parent category, or leave as 404/410
URL never existed or is junkLeave as 404

Google's redirects documentation says permanent server-side redirects are the best way to signal that a page has moved for good.

Sending every broken URL to the homepage is a poor match for users. Read should you redirect pages with backlinks for edge cases.

Step 3: Add redirects with a plugin

The easiest method for most sites.

The Redirection plugin page describes it as the most popular redirect manager for WordPress. It manages 301 redirects, tracks 404 errors, and works without Apache or Nginx knowledge.

  1. Install and activate Redirection from Plugins, then Add New.
  2. Go to Tools, then Redirection, and complete the setup.
  3. Add the broken URL as the "Source URL".
  4. Add the live page as the "Target URL".
  5. Keep the type as 301 and save.

Redirection can also import redirects from Rank Math, Simple 301 Redirects, and WordPress's own old-slug redirects, according to its plugin page.

Other plugins work too. The 301 Redirects plugin page notes its 404 log keeps only the last 50 errors by default, so export or review logs regularly.

Bulk redirects after a migration

Import a CSV instead of adding rules one by one.

After a redesign or URL change, map every old URL to its new one in a spreadsheet with two columns: source and target. Redirection supports import and export, and its plugin page notes you can automate import and export with WP-CLI.

The plugin's source code and issue tracker are on GitHub, which is useful if you hit an edge case.

By default Redirection handles redirects inside WordPress, but its plugin page explains it can also write redirects to the .htaccess file so Apache handles them directly.

Use regex carefully

One pattern can fix hundreds of URLs, or break them.

If a whole folder moved, a regular expression rule can redirect every URL in it. Test the pattern on a few URLs first, and keep a list of exceptions.

Step 4: Or use your SEO plugin

Many SEO plugins include a redirect manager.

If you already use an SEO plugin with redirects, add rules there to avoid running two redirect tools. Check whether the feature is in the free or paid version before relying on it.

Step 5: Or edit .htaccess (Apache servers)

Fast for bulk rules, risky without a backup.

On Apache, you can add rules such as:

Redirect 301 /old-page/ https://www.example.com/new-page/

The Apache mod_alias documentation explains the Redirect directive. Always back up .htaccess first and test immediately, since a typo can take the site offline.

Nginx servers do not use .htaccess; redirects go in the server configuration instead.

Step 6: Test every redirect

One hop, correct status, correct target.

  • Visit the old URL and confirm it lands on the new page.
  • Check the status code is 301, not 302, with a header checker or crawler.
  • Avoid chains where URL A redirects to B, then to C.
  • Avoid loops that send users back to the original URL.

Read what is a 301 redirect for SEO for how redirects work.

Don't make your own links depend on redirects.

Find internal links that point to the old URL and change them to the new one. This saves a hop for users and crawlers. If you need a bulk method, see how to fix broken backlinks for related fixes.

Keep a redirect log

Record every rule you add, with the date and reason.

A simple log makes it easy to clean up chains later and to explain changes during an audit.

When not to redirect

Some 404s are fine.

Google's documentation treats 404 as a normal response for pages that don't exist. Leave junk URLs, typos from bots, and removed content with no replacement as 404 or 410.

Read do 404 pages lose their backlinks before deciding on URLs that have external links.

Frequently Asked Questions

Should I redirect all 404 pages to the homepage?

No. Redirect each broken URL to the most relevant live page. If no relevant page exists, leaving a 404 is usually better.

What is the best redirect plugin for WordPress?

Redirection is the most widely used free option. If your SEO plugin already has a redirect manager, using that avoids running two tools.

Google says permanent redirects signal that the target should replace the old URL, so links pointing at the old page are generally consolidated to the new one.

How long should I keep redirects?

Keep them as long as old URLs still get traffic or have backlinks. For most sites, that means indefinitely.

Will redirects slow down my WordPress site?

A reasonable number of redirects has little impact. Very large rule sets or chains can add delay, so keep them tidy.

Sources

BacklinkPrice Team
Written by
BacklinkPrice Team
Link building and backlink pricing research

The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.

More from BacklinkPrice Team

Related guides