How to Redirect a Page or URL in WordPress – [Full Guide]
If you’ve been managing a WordPress site for any length of time, you’ve likely encountered situations where you need to change a URL. Maybe you’re rebranding your blog categories, updating an old post with fresh content, or migrating from HTTP to HTTPS. Whatever the reason, one thing remains constant: broken links frustrate visitors and damage your search engine rankings. That’s where URL redirects come in—they seamlessly guide users and search engines from an old address to a new one, preserving your hard-earned traffic and SEO equity.
In this comprehensive guide, we’ll explore everything you need to know about redirecting pages and URLs in WordPress. Whether you’re a beginner looking for a plugin-based solution or an advanced user wanting to understand the technical underpinnings, you’ll find step-by-step instructions, expert tips, and crucial warnings to ensure your redirects work flawlessly.
Why Redirect Pages or URLs?
In WordPress, there are a variety of situations in which you may need to redirect a post, page, or URL address. Perhaps you’ve made a change to the slug for a particular post or page. It’s possible that you’ve changed your permalink settings. Alternatively, you may have written a new post and wish to redirect an older post to it. It is necessary to put up a redirect in each of these situations.
This instructs browsers to navigate to the new URL rather than the old one. You’ll need to install a plugin in order to set up redirects. It is my intention in this post to show you how to accomplish this using the Redirection WordPress plugin.

Why Not Use Redirects?
Setting up redirects isn’t the most convenient solution. It slows down the user’s experience because the browser will navigate to the first URL, receive the redirect message, and then navigate to the second URL. Furthermore, there is a possibility that you will set up the redirect incorrectly or that you will just forget to do so after updating a URL. Not only that, but links that come through a redirected page aren’t worth as much in terms of SEO because Google doesn’t place as much emphasis on them. As a result, it is recommended that you avoid changing your URLs entirely. Make sure that your URLs are optimised from the beginning in order to reduce the number of times they need to be changed:
- When you first set up your site and before you add any articles or pages, make sure your permalink settings are set to use attractive permalinks so that your site looks nice.
- Before you publish a post or page, you should configure the slug for that particular post or page. Make certain that it is appropriate for both search engine optimization (SEO) and user experience (UX).
- However, if you haven’t previously done so and you need to redirect your URLs, how do you go about doing so?
PRO TIP
Plan your URL structure before you publish. The best redirect is the one you never need. Use descriptive, keyword-rich slugs that won’t become outdated. For example, use /best-wordpress-plugins instead of /plugins-2024—this way you won’t need to change it next year. The Yoast team recommends keeping URLs short, descriptive, and consistent with your site’s hierarchy.
How to Set Up Page and URL Redirects in WordPress
When it comes to WordPress redirects, there are several distinct types that you may want to consider using. The types that you’ll most likely be employing are as follows:
- automated redirects
- manual redirects
- wildcard redirects
Let’s take a look at each of these WordPress redirects.
Setting Up Automated Redirects
Install the Redirection plugin for WordPress immediately if you haven’t already. When you first install the WordPress redirect plugin, you have the option of automatically tracking URL changes and setting up redirects. The link redirect builder plugin will also scan your existing articles and pages for revisions and set up redirects from any old slugs you may have used for them. In the example below, it detected a change in the slug of an existing post and added a redirect from the old slug to the new one.

What if I alter my slugs or URLs once I activate them? The link redirect builder plugin will detect them and put up the redirect automatically. The WordPress redirect plugin interface after more slug modifications is shown below.

Setting Up Manual Redirects
Sometimes the WordPress redirect plugin will miss the page redirect you require. Perhaps you want to redirect one article on your WordPress site to another, or you want to redirect a URL on your domain to a different website. In this scenario, you’ll need to set up a manual redirect in WordPress without the use of a plugin. Scroll down to the Add new redirection area under Tools > Redirection.

Type or paste the URL you want to redirect from into the Source URL section. Enter or paste the URL you want to redirect to in the Target URL area. If you’re redirecting from an older post to a newer one, leave the Group option as Redirections (the default) or select Modified posts. This will provide browsers with information about the type of rerouting. Finally, press the Add Redirect button to add your manual redirect to the list of redirects.
COMMON MISTAKE WARNING
Always use absolute URLs, not relative paths. When entering your target URL, include the full address including https://yourdomain.com. Entering just /new-page may cause unexpected behavior or loop redirects. The Mozilla Developer Network emphasizes that relative URLs in Location headers can be misinterpreted by some browsers.
Setting Up Wildcard Redirects
When you wish to redirect a group of URLs that share particular elements, use a wildcard redirect. For example, if you alter your permalink structure, a wildcard redirect will redirect anyone who uses a link from your old structure to the identical link in your new structure. If you change your post permalink structure from /blog/post-name to /category/post-name, for example, you’ll need to employ a wildcard redirect to ensure that everyone using the old links is diverted to the new URL. Wildcard redirects make advantage of a feature known as Regex, which allows you to design complex redirects. To set up a wildcard WordPress redirect, you must first activate Regex functionalities. Scroll to the Add new redirection portion of the screen by going to Tools > Redirection.

Enter the old path to categories as a wildcard in the Source URL column. It must be in the format /oldslug/(.*)$. The Target URL entry must include the source /newslug/$1. Then, on the Add Redirect button, confirm your selection.
PRO TIP
Test your regex patterns before deploying. Regex can be tricky—a misplaced character can break hundreds of URLs. Use online tools like Regex101 to validate your patterns. For the example /blog/(.*)$, the (.*) captures everything after /blog/, and $1 in the target inserts that captured value. This ensures /blog/seo-tips redirects to /category/seo-tips seamlessly.
Understanding HTTP Redirect Status Codes
When setting up redirects, you’ll encounter different HTTP status codes. The Redirection plugin allows you to choose which code to use. Here’s what they mean:
| Status Code | Name | When to Use | SEO Impact |
|---|---|---|---|
| 301 | Moved Permanently | Permanent URL changes (90% of cases) | Passes 90-99% of link equity |
| 302 | Found (Temporary) | A/B testing, temporary maintenance | Does not pass link equity |
| 307 | Temporary Redirect | HTTP to HTTPS temporary (rare) | Same as 302 |
| 308 | Permanent Redirect | Permanent, preserves HTTP method | Similar to 301 |
Advanced Redirect Methods: .htaccess (For Technical Users)
If you’re comfortable with server configuration, you can set redirects directly in your .htaccess file (Apache servers) or nginx configuration. This method is faster because it bypasses WordPress entirely, but mistakes can break your site. Always backup your .htaccess file before editing.
Example 301 redirect in .htaccess:
Redirect 301 /old-page https://yoursite.com/new-page
For regex-based redirects (mod_rewrite):
RewriteEngine On
RewriteRule ^blog/(.*)$ /category/$1 [R=301,L]
SERVER-LEVEL WARNING
One syntax error can crash your site. If you’re not experienced with .htaccess, stick to plugins. If you must edit manually, use FTP to access the file and keep a local backup. The Apache documentation is your friend, but test changes on a staging site first.
Common Redirect Scenarios and Solutions
Scenario 1: Changing WordPress Permalink Structure
If you switch from /p=123 to /post-name/, all your old URLs will break. Use a wildcard redirect with regex to capture all old posts: Source: /archives/(.*)$ Target: /posts/$1 (adjust to match your exact structure).
Scenario 2: Merging Two Posts or Pages
When you combine content, you need a manual 301 redirect from the old URL to the new one. This preserves backlinks and ensures users find the consolidated information.
Scenario 3: Site Migration to New Domain
Moving to a new domain requires a global redirect. With the Redirection plugin, you can set up a site-wide redirect by adding a single rule: Source: /(.*)$ Target: https://newdomain.com/$1. Use a 301 redirect and test thoroughly.
Top WordPress Redirect Plugins Compared
Redirection
Free, 5M+ installs, automatic slug monitoring, regex support, 404 tracking. Best all-around choice.
Rank Math SEO
Premium SEO plugin with built-in redirect manager. Great if you already use Rank Math.
Safe Redirect Manager
Developer-friendly, lightweight, no ads. Perfect for agencies and custom builds.
Includes redirect manager and automatic redirects when deleting posts. Paid but integrated.
Testing Your Redirects
After setting up redirects, always test them:
- Visit the old URL in an incognito/private browser window.
- Use online tools like HTTPStatus.io or RedirectChecker to trace the redirect chain.
- Check for redirect loops (e.g., Page A → Page B → Page A).
- Verify the correct HTTP status code (301 for permanent, 302 for temporary).
REDIRECT BEST PRACTICES CHECKLIST
- ✅ Keep redirect chains short: Avoid Page A → Page B → Page C. Update directly to the final URL.
- ✅ Use 301 for permanent moves: This passes the most SEO value.
- ✅ Document your redirects: Maintain a spreadsheet or use the plugin’s export feature.
- ✅ Review redirects quarterly: Remove outdated ones to keep your .htaccess/plugin clean.
- ✅ Monitor 404 errors: Use Google Search Console or the Redirection plugin’s 404 log to catch missed redirects.
Summary
You’ll need to set up a redirect if you alter the URLs on your WordPress site or publish a new post to replace an old one. You might use an automatic redirect, a manual redirect, or a wildcard redirect depending on the changes you’ve made. You learnt how to generate redirects for various situations in this tutorial.
Remember that redirects are a powerful tool, but they should be used thoughtfully. Each redirect adds a tiny amount of latency and complexity to your site’s architecture. By planning your URL structure carefully and only changing URLs when absolutely necessary, you’ll minimize redirect needs and provide the best experience for both users and search engines.
Your Quick Redirect Action Plan:
- ✅ Install the Redirection plugin (or your preferred tool).
- ✅ Let it scan for existing slug changes to auto-create initial redirects.
- ✅ For new URL changes, create manual redirects immediately after updating.
- ✅ Use wildcard redirects for bulk pattern changes.
- ✅ Test every redirect and monitor 404s weekly.
With this system in place, you’ll never lose traffic to broken links again.
For further reading, consult the MDN Web Docs on HTTP redirects, Google’s official guide to redirects, and the Redirection plugin page for documentation and support forums.







Hi Dear,
Thank you for sharing this details. This content is very helpful for me.