Wordpress
How to Set Up a 301 Redirect in WordPress
Move one WordPress page to a relevant replacement and verify the redirect, final URL and site references.
On this page
To set up a 301 redirect in WordPress, map the old URL to a relevant replacement, add a permanent redirect in your existing redirect manager, and check the HTTP response. The old address should lead directly to the intended page, which should load successfully at its final URL.
This tutorial uses the Redirection plugin for one ordinary page move. Start with a single rule you can inspect. If you are changing an entire URL structure, prepare the wider mapping first with our WordPress permalinks guide.
Decide whether the page needs a 301 redirect
A 301 means that a resource has moved permanently. It suits an article moved to a new address or an old guide merged into a closely related replacement. For a temporary move, choose a temporary redirect instead. Google explains how these signals differ in its redirect documentation.
Choose the destination by the job the old page performed. If someone follows a link about sizing a bike chain, the new chain-sizing guide is useful. A general homepage leaves that task unfinished. If the content has been removed and there is no suitable replacement, a proper not-found or gone response may be the appropriate outcome.
| Situation | Practical approach |
|---|---|
| A guide has a new permanent address | Redirect the old URL to that guide’s final address. |
| Two overlapping articles become one stronger guide | Map each retired URL to the relevant consolidated page. |
| A page is temporarily unavailable | Use a temporary response that fits the situation. |
| Content is deleted without a useful replacement | Keep an appropriate 404 or 410; fix obsolete internal links. |
Record the exact old URL and final destination
Open the replacement while logged out. Check its content, final address and response before adding a rule. If it already redirects, use its final preferred URL as the destination.
For the worked example below, suppose a guide has moved from https://example.com/bike-chain-size/ to https://example.com/chain-sizing/. The old path is the source; the new full address is the target. Keep both in your change record.
Also record where redirects are currently managed: a WordPress plugin, hosting dashboard, server configuration or CDN. Check for an existing rule before adding another. If an earlier layer handles the request, changing a WordPress rule alone may not change the response you receive.
Add one rule with the Redirection plugin
If the site already has a working redirect manager, use it. Otherwise, Redirection by John Godley is an option available from the WordPress plugin directory. Install and activate it, complete its setup, then open Tools → Redirection.

- In Source URL, enter
/bike-chain-size/, relative to this WordPress installation’s site URL. - In Target URL, enter
https://example.com/chain-sizing/, replacing the example domain with your own. - Keep the match limited to this URL. Leave regular-expression matching off for this example.
- Open the advanced controls with the cog. Confirm Redirect to URL and HTTP code 301 — Moved Permanently.
- Give the rule a useful description, such as “Chain guide moved,” and save it with Add Redirect.

The plugin’s rule-creation reference explains the fields; its action reference covers the HTTP code. A successful save confirms the configuration was stored. The next check establishes what the public request actually does.
Check parameters and trailing slashes deliberately
A URL’s query string can change which rule matches. Redirection supports exact parameter matching, ignoring parameters, or ignoring and passing them to the target. Review its URL-matching documentation before selecting a broader behavior.
Test a plain old URL first. Then test a version people may have shared, such as /bike-chain-size/?utm_source=newsletter. Decide whether those tracking parameters should carry through. A product or language parameter may affect the content itself, so it deserves a separate mapping decision.
Check the trailing-slash variation too. The target should already use the site’s preferred slash format; otherwise a simple move may gain an avoidable second hop. A #section fragment is handled by the browser and is not part of the request sent to the server.
Verify the status, Location header and final page
Use an HTTP checker that shows the complete chain, or inspect the document request in your browser’s Network panel with Preserve log enabled. A browser landing on the right page does not reveal whether it passed through several intermediate addresses.
With curl, this command makes a GET request, discards the body and prints the response headers without following the redirect:
curl -sS -D - -o /dev/null 'https://example.com/bike-chain-size/'
Look for status 301 and a Location header resolving to the intended final URL. Then follow the chain:
curl -sS -L --max-redirs 5 -D - -o /dev/null 'https://example.com/bike-chain-size/'
The example should show the original 301 followed by a successful response from the replacement. Open the destination as well and confirm that it contains the expected guide. The curl manual describes the header, redirect-following and redirect-limit options.
A live example of the two-request check
On October 24, 2026, a GET request to https://www.searchglint.com/wordpress returned 301 with Location: https://www.searchglint.com/wordpress/. A separate request to that destination returned 200.
That example is WordPress’s trailing-slash normalization. For the page-move rule you add, inspect the same two pieces of evidence: the old address’s redirect response and the destination’s actual content.
Fix a chain, loop or rule that does not match
| Observed result | Next check |
|---|---|
| Old URL still returns 200 | Check the source match, rule state and whether a cache serves the old page. |
| Old URL returns 404 | Check the exact requested path, parameter settings and whether the request reaches WordPress. |
| Old → intermediate → final | Point the original rule directly to the final relevant URL. |
| Old → new → old | Inspect the reverse rule and conflicting host, protocol or slash settings. |
| Unexpected pages also redirect | Review broad patterns, match options and rule order. |
If a test still shows an earlier destination after an edit, compare a fresh HTTP request with the browser’s result. Clear only the relevant cache when needed. Disable the new rule while investigating if it captures pages outside the intended move. Recheck the old URL, the destination and an unrelated control URL.
Update the references that should use the new URL
Replace internal links to the retired address so readers can reach the new page directly. Check navigation, related articles and prominent buttons. The replacement should declare its intended canonical URL, and the active WordPress sitemap should list the preferred destination rather than the retired address.
Keep the redirect available for people using old bookmarks and external links. For larger moves, Google’s URL-migration guidance recommends maintaining redirects for at least a year. A rule may remain useful longer if the old address still receives relevant visits.
Record the source, destination, reason and verification date. Use your staging and rollback process for the change, and monitor the old route for errors after release. The rule is finished when its HTTP behavior, destination and site references agree.
