AI Overview
To redirect a page in WordPress, add a 301 redirect from the old URL to the new one. The easiest way is the free Redirection plugin or your SEO plugin's redirect manager; with server access, an .htaccess or Nginx rule is faster. Then update internal links, test the old URL, and keep the redirect for at least a year.
Key takeaways
- Use a 301 redirect for permanent moves and a 302 or 307 only for temporary ones.
- The free Redirection plugin is the simplest option and works on any host.
- WordPress auto-redirects changed post slugs, but not pages.
- Point old URLs straight at the final destination to avoid chains and loops.
- Update internal links and test with a private window or curl -I.
Free WordPress plugin
Know which plugin update broke your site.
The free MyKavo plugin watches your site through every plugin, theme and core update, and tells you which one caused a change, before your visitors find it.
- Records every plugin, theme and WordPress update
- Checks your key pages right after each update and names the one that broke something
- One-click rollback when an update goes wrong, free
- Changes, alerts and before-and-after proof inside wp-admin
Free on WordPress.org · WordPress 6.2+ · PHP 7.4+ · The check after each update comes with every paid plan
Summarize with AI
Opens the assistant in a new tab with a link to this post.
On this page
To redirect a page in WordPress, add a 301 redirect from the old URL to the new one. The easiest way is a free plugin such as Redirection or the redirect manager in your SEO plugin; the fastest is a rule in your server config (.htaccess on Apache, a return 301 on Nginx). Which one fits depends on how many redirects you need and what access you have.
This guide walks through each method step by step, explains when to use 301, 302, 307 and 308, covers what WordPress already redirects on its own, and shows how to avoid the chains and loops that slow pages down and confuse search engines.
Running WordPress? The free MyKavo WordPress plugin checks your pages after every update, and MyKavo alerts you when a page starts redirecting or returns a 404. Start monitoring free.
Quick answer: how to redirect a page in WordPress#
- Pick the redirect type. Use a 301 when the page has moved for good (almost always); use a 302 or 307 only for temporary moves.
- Install the free Redirection plugin, or use the redirect manager in Rank Math (free) or Yoast SEO Premium.
- Add the redirect: enter the old path (for example
/old-page/) as the source and the new URL as the target, then save. - Test the old URL in a private window or with a redirect chain checker. It should go straight to the new page in one hop.
- Update internal links, menus and buttons so they point at the new URL directly.
- Keep the redirect in place for at least a year, as Google's site move documentation recommends.
Which redirect type should you use?#
The status code tells browsers and search engines whether the move is permanent or temporary.
| Code | Name | Permanent? | Use it when |
|---|---|---|---|
| 301 | Moved Permanently | Yes | A page, post or URL has moved for good. The default choice. |
| 302 | Found | No | A short-term move, such as sending visitors to a sale page for a week. |
| 307 | Temporary Redirect | No | Same as 302, but the browser must keep the request method (a form POST stays a POST). |
| 308 | Permanent Redirect | Yes | Same as 301, but the request method is kept. Useful for APIs and form endpoints. |
Google's Search Central documentation says permanent redirects (301 and 308) are a strong signal that the target should be the indexed URL, while temporary ones (302 and 307) are a weak signal. For normal pages, a 301 is the right answer. For a deeper comparison, see our guide to 301 vs 302 redirects.
Avoid meta refresh tags and JavaScript redirects when you can. Google recommends server-side redirects, and they're faster for visitors.
Method 1: The Redirection plugin (best for most sites)#
Redirection is a free, long-running plugin on WordPress.org. It works on any host, including Nginx servers, because WordPress handles the redirect itself.
- Go to Plugins > Add New, search for Redirection (by John Godley), then install and activate it.
- Open Tools > Redirection and complete the short setup wizard. Turn on Monitor permalink changes so the plugin adds a redirect automatically when you change a post or page slug.
- Click Add New.
- In Source URL, enter the old path, such as
/old-page/. - In Target URL, enter the new URL, such as
/new-page/or a full URL on another domain. - Leave the HTTP code at 301 - Moved Permanently (it's under the gear icon if you need to change it).
- Click Add Redirect, then test the old URL.
Redirection also keeps a 404 log of URLs visitors hit that no longer exist, the quickest way to find old links that need a redirect. It supports regular expressions for whole folders and CSV import and export.
Method 2: Your SEO plugin's redirect manager#
If you already use an SEO plugin, you may not need another plugin.
- Rank Math (free): go to Rank Math SEO > Dashboard, enable the Redirections module, then open Rank Math SEO > Redirections > Add New. Enter the source and destination and pick the redirect type (301, 302 and 307, plus 410 and 451 for removed content).
- Yoast SEO Premium: go to Yoast SEO > Redirects. Premium also offers to create a redirect when you change a slug or delete a post. The free version of Yoast SEO doesn't include a redirect manager.
Use one redirect manager, not two. Rules split between Redirection, an SEO plugin and .htaccess are hard to audit and are a common source of chains and loops.
Method 3: .htaccess (Apache and LiteSpeed)#
Server rules run before WordPress loads, so they're the fastest option. They suit sites with a fixed set of redirects and someone comfortable editing server files.
- Download a copy of
.htaccessfrom your site's root folder as a backup. - Add your rules above the
# BEGIN WordPressline, so WordPress doesn't overwrite them.
A single page, matched exactly:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^old-page/?$ /new-page/ [R=301,L]
</IfModule>
A whole folder, keeping the rest of the path:
RewriteRule ^blog/(.*)$ /news/$1 [R=301,L]
You'll also see the shorter Redirect 301 /old-page/ https://example.com/new-page/. It works, but it matches by prefix, so /old-page/anything also redirects, and mixing Redirect with WordPress's own RewriteRule lines can behave unexpectedly. The RewriteRule form above is more predictable.
One typo in .htaccess can take the whole site down with a 500 Internal Server Error. If that happens, restore your backup copy.
Try it on your site · free
Trace your own redirect chain
Every hop, its status code and where it ends up.
Method 4: Nginx#
Nginx ignores .htaccess files. Add redirects to your site's server block instead:
# One page, exact match
location = /old-page/ {
return 301 https://example.com/new-page/;
}
# A whole folder
rewrite ^/blog/(.*)$ /news/$1 permanent;
Test the configuration and reload:
sudo nginx -t && sudo systemctl reload nginx
On managed hosting, you usually can't edit the Nginx config yourself. Use your host's redirect tool or a plugin instead.
Method 5: Your hosting dashboard#
Many hosts include a redirect screen. In cPanel, it's under Domains > Redirects and writes the rule to .htaccess for you; many managed WordPress hosts have their own redirect rules screen. It's server-level speed without editing files by hand.
Does WordPress redirect changed URLs automatically?#
Partly, and it's worth knowing exactly where it stops.
- Changed post slugs: when you change the slug of a published post, WordPress saves the old slug in a hidden
_wp_old_slugfield. If someone visits the old URL and it would otherwise 404, WordPress sends them to the post's current URL with a 301. - Pages are not covered. The old slug feature skips hierarchical post types, which includes pages. Change a page's slug and the old URL simply returns a 404.
- URL guessing: for some 404s, WordPress tries to guess a similarly named post and redirect to it. That can help, but it can also send visitors to the wrong page.
- Canonical clean-up: WordPress redirects some URL variations to the standard form, such as
?p=123to the pretty permalink.
None of this helps when you change your permalink structure, delete a page, move content to a new domain, or change a page slug. In those cases, add redirects yourself. If links broke after a permalink change, our guide to WordPress permalinks not working covers the fixes.
How to redirect a deleted page#
When you delete a page, redirect its URL to the closest relevant replacement: an updated version, the parent category, or a similar product.
Don't redirect every deleted page to the homepage. Google's site move documentation advises against redirecting many old URLs to one irrelevant destination such as the homepage, and visitors are confused when they land somewhere unrelated. If there's no genuine replacement, letting the URL return a 404, or a 410 if your redirect tool supports it, is fine. Our 404 error guide explains when that's the right call.
Avoid redirect chains and loops#
Redirect chains#
A chain is when one redirect leads to another: /old-page/ to /new-page/ to /newer-page/. Each hop adds a round trip for visitors, and Google's documentation says Googlebot follows up to 10 redirect hops, so long chains risk the final page never being reached.
Chains build up quietly on WordPress sites because several layers redirect independently: HTTP to HTTPS, non-www to www, a missing trailing slash, and then your plugin's redirect. Fix a chain by pointing every old URL straight at the final destination. If you redirected A to B last year and now move B to C, update the A rule to go to C as well.
Redirect loops#
A loop is when redirects point back at each other, so the browser gives up with "too many redirects." Common causes on WordPress:
- A plugin rule and an
.htaccessrule that contradict each other. - WordPress Address and Site Address settings that don't match how the site is actually served (www vs non-www, HTTP vs HTTPS).
- Cloudflare set to Flexible SSL while the server also forces HTTPS.
Our guide to ERR_TOO_MANY_REDIRECTS walks through each fix.
Update internal links after you redirect#
A redirect covers links you can't control, like bookmarks and backlinks. Point the links you do control at the new URL directly:
- Menus in Appearance > Menus or the Site Editor's Navigation block.
- Buttons and links in posts, pages and reusable blocks or patterns.
- Page builder templates, headers and footers.
- Canonical tags, if you set them manually.
For a site-wide change, a serialization-safe search-replace updates every reference at once. Use the full URL so you don't match unrelated text, and preview first:
wp search-replace 'https://example.com/old-page/' 'https://example.com/new-page/' --dry-run
Our guide to internal linking covers why direct links matter, and the free broken link checker finds any links that now land on a 404.
How to test a redirect#
Browsers cache 301 redirects aggressively, so a test in your normal browser window can show an old result. Use one of these instead:
- A private or incognito window, after clearing your caching plugin and CDN cache.
- The command line.
curlshows the status code and destination without following anything:
curl -I https://example.com/old-page/
Look for 301 on the first line and the new URL in the location: header. Add -L to follow the whole chain and see every hop.
- The free redirect chain checker, which lists each hop, its status code and the final destination.
- The bulk URL status checker when you've added dozens of redirects during a redesign and want to confirm them all at once.
Which redirect method should you use?#
| Your situation | Best method |
|---|---|
| A few redirects, no server access | Redirection plugin |
| You already use Rank Math | Rank Math Redirections module |
| You use Yoast SEO Premium | Yoast Redirect Manager |
| Hundreds of redirects, Apache or LiteSpeed | .htaccess rules |
| Your own Nginx server | return 301 in the server block |
| Managed host with a redirect tool | The host's dashboard |
| Moving the whole site | Server-level rules, planned in advance |
If you're moving a whole site or changing domains, plan redirects as part of the project. Our website migration guide covers the full checklist.
How to catch redirect problems automatically#
Redirects break in ways nobody notices: a plugin update changes a slug, someone edits .htaccess, an SEO plugin adds a rule that conflicts with another. MyKavo monitors the pages you pick and checks their HTTP status and redirects on every scan. When a monitored page starts redirecting, lands on a different destination, or returns a 404, you get an alert with before-and-after proof and a severity level, plus changes to the title, canonical and noindex status that often come with a broken redirect. If the change was intentional, approve it as the new baseline.
For WordPress, the free MyKavo WordPress plugin checks your pages after every plugin, theme and core update and names the update when something broke, right inside wp-admin. It requires WordPress 6.2+ and PHP 7.4+, and it's free on every MyKavo plan.
Frequently asked questions#
Frequently asked questions
How do I redirect a page in WordPress without a plugin?
Add a rule to your server configuration. On Apache or LiteSpeed, put a RewriteRule with R=301 in .htaccess above the # BEGIN WordPress line; on Nginx, add a location block with return 301 to the server block. Your hosting dashboard may also have a redirect tool.
How do I do a 301 redirect in WordPress?
Install the free Redirection plugin, go to Tools > Redirection, click Add New, enter the old path as the Source URL and the new URL as the Target URL, keep the code at 301, and save. Then test the old URL in a private window.
Does WordPress automatically redirect when I change a URL?
Only for posts. When you change a published post's slug, WordPress stores the old slug and redirects it with a 301. Pages, permalink structure changes, deleted content and domain moves are not covered, so add those redirects yourself.
Should I use a 301 or 302 redirect?
Use a 301 when the page has moved permanently, which covers most cases. Use a 302 or 307 only when the original URL will come back, such as a short promotion or maintenance.
Do redirects hurt SEO?
A single 301 to a relevant page is the recommended way to move content and keep its search value. Problems come from long redirect chains, loops, redirecting many pages to an unrelated page like the homepage, and leaving internal links pointing at old URLs.
How long should I keep a 301 redirect?
Google's site move documentation recommends keeping redirects for as long as possible, generally at least one year. Many sites keep them permanently because old backlinks and bookmarks keep sending visitors.
Why is my WordPress redirect not working?
The most common causes are browser or page caching, a conflicting rule in another plugin or .htaccess, a typo or missing trailing slash in the source URL, and .htaccess rules placed below the WordPress block. Test in a private window or with curl -I to see what the server actually returns.
The bottom line#
For most WordPress sites, the Redirection plugin or your SEO plugin's redirect manager is the simplest way to redirect a page; .htaccess and Nginx rules are faster when you have many redirects and server access. Use a 301 for permanent moves, point old URLs straight at the final destination, update your internal links, test with a private window or curl -I, and keep redirects in place for at least a year.
Know the moment a page starts redirecting. Start monitoring your site free with MyKavo and get the free MyKavo WordPress plugin, no card needed.
Write for MyKavo
Know website monitoring, WordPress or SEO from real work? Pitch us a guide. You keep a byline with one link to your site. Read the guidelines
Get alerted when your site breaks. Free, no card.
Start free