Learn

301 redirects in WordPress without breaking SEO

A redirect sends visitors and Googlebot from an old URL to a new one. In WordPress you can set one in server configuration, in a plugin, or in some hosting panels. Google prefers the server route, and the plugin route is fine as long as the result is a single permanent hop.

By Adem ÇakalPublished 5 sources6 min read
Short answer

For a page that has moved for good, send one permanent redirect (301 or 308) from the old URL straight to the final URL. Google prefers server-side redirects, so use server configuration if you can, and a redirect plugin otherwise. Then test the old URL: it should show one hop and a 200 at the end.

What Google says about redirect types

Google's redirect documentation splits redirects by how the indexing pipeline treats them. Permanent ones (301, 308, a zero-second meta refresh, JavaScript location changes) are a signal that the target should be canonical, and Google advises using them only when you are sure the redirect will not be reverted. Temporary ones (302, 303, 307, delayed meta refresh) are followed by Googlebot but are not a canonical signal, so the source URL can stay in results. Pick temporary only when the move really is temporary.

The same page ranks the methods. Server-side redirects come first because they are most likely to be interpreted correctly, set in server configuration such as Apache .htaccess or NGINX, or in server-side code. Meta refresh is the fallback, and JavaScript redirects are for cases where nothing else works, since Google may not render the page.

Methods compared

MethodWhat the vendor documentsBest forWatch for
Server configuration (Apache, NGINX)Google names it the preferred routeSite-wide rules, domain or https movesNeeds file or server access. A syntax error can take the site down
Redirection pluginCreates and manages redirects, matches by regular expression, groups them, logs redirects and 404 errors, imports and exports to Apache and NginxMany single-page moves and fixing logged 404sIts support page lists no redirect types, so confirm the type in its settings
Rank Math RedirectionsRank Math SEO, Redirections, Add New. Types 301, 302, 307, with 410 and 451 as maintenance codes. Module must be enabled and Advanced mode onSites already running Rank MathNo 308 in the article. CSV import and sync to .htaccess are marked PRO
Yoast Premium Redirect ManagerPart of Yoast SEO Premium. Types 301, 302, 307, 410, 451. Creates a redirect when a URL changes. Can write to Apache or NGINX configSlug changes during normal editingBehavior on deletion is described unclearly. Check what it did after deleting a post
Hosting panel redirect toolWe found no vendor documentation to quoteWhole-domain redirectsPanels differ. Check the response type after saving

Paths and limits come from each vendor's page as read on 2026-11-12. Menu names move between releases, so confirm them in your dashboard.

Chains and why they cost you

Direct redirect with one hop versus a chain of three hops where an old slug, a renamed slug and an http version each redirect again /old-post/new-post, 200301, one hop /old-post/post-v2http new/new-post, 200 three hops: rules added over the years
Chains usually appear when each site change adds a new redirect on top of the last. Example URLs.

Google's site move guide says Googlebot can follow up to 10 hops, that chains add latency for users, and that not every browser supports long ones. It advises pointing each old URL at the final destination, and keeping unavoidable chains to ideally no more than 3 and fewer than 5. When you add a new redirect, update older ones that end at the URL you just moved so they skip the middle step.

Steps to add and verify a redirect

  1. List the old URLs and their final destinations. Choose the closest equivalent page, not the homepage.
  2. Create the redirect by your chosen method, with type 301 unless the move is temporary.
  3. Test the old URL with the noindex checker, which shows the redirect chain, final status, noindex and canonical. Or run the command below.
  4. Update your sitemap, menus and internal links to the final URLs.
  5. Keep the redirect in place for at least a year, per Google's guide.
# Apache (.htaccess), example paths
Redirect 301 /old-post/ https://example.com/new-post/

# NGINX, inside the server block
location = /old-post/ { return 301 https://example.com/new-post/; }

# Test: each HTTP line is one hop, the last should be 200
curl -sIL https://example.com/old-post/ | grep -iE "^(HTTP|location)"

The two config lines are generic examples of common syntax, not copied from the vendor pages above. Back up your config before editing it.

If Search Console lists redirecting URLs, see page with redirect to decide which need action. Planning a redesign or domain change? Read traffic dropped after a redesign or migration. When switching SEO plugins, carry redirects over using the plugin switch guide.

We did not test these plugins on a live site. The behavior described is what each vendor's page states, and Redirection's support page does not state its redirect types or its cost.

Questions people ask

Is a 301 or a 308 better for SEO?

Google treats both as permanent redirects and uses them as a signal that the new URL should be canonical. Its site move guide names 301 and 308 as the permanent server-side types to prefer. Rank Math's documentation lists 301, 302 and 307, so choose 301 there.

Can I redirect with JavaScript or a meta refresh?

Google lists server-side redirects as preferred, meta refresh as a fallback, and JavaScript redirects only when neither is possible, because Google may fail to render the page and never see the redirect.

Does a plugin redirect slow the site down?

Yoast says its Redirect Manager can be configured to write directly to the Apache or NGINX configuration for speed, which suggests server-level rules are faster. We found no measured figure, so test your own site.

How long do I keep a redirect?

Google's site move guide says generally at least a year, and that keeping it longer can help users. Update your own links so visitors do not depend on it.

Sources

  1. Google Search Central: Redirects and Google Search, accessed 2026-11-12.
  2. Google Search Central: Site moves with URL changes, accessed 2026-11-12.
  3. Rank Math: Setting up Redirections, accessed 2026-11-12.
  4. Yoast: Redirect manager, accessed 2026-11-12.
  5. Redirection plugin: support page, accessed 2026-11-12.