
WordPress powers a large share of the web, and sites built on it frequently change as content is updated, products are discontinued, and site structures evolve. When you change a page's URL or remove a page entirely, setting up a redirect ensures that visitors and search engines reach the right destination. WordPress offers several ways to create redirects, from beginner-friendly plugins to server-level configurations. This guide walks you through each method and explains best practices to protect your rankings.
AAMAX.CO: WordPress Expertise You Can Rely On
Managing redirects on a growing WordPress site can become complex, especially during redesigns or migrations. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their WordPress specialists audit URL structures, implement efficient redirects, and resolve broken links to maintain search visibility. Businesses seeking reliable WordPress support benefit from their professional website development services, which combine technical skill with SEO awareness.
Why Redirects Matter in WordPress
When a URL changes without a redirect, anyone clicking an old link or bookmark lands on a 404 error page. Search engines also lose the ranking signals accumulated by the old URL. Redirects solve both problems by forwarding users and passing link equity to the new page. Common situations include changing a post's slug, deleting outdated pages, merging similar content, changing permalink structures, and moving to a new domain.
Method 1: Use the Redirection Plugin
The free Redirection plugin is one of the most popular solutions. To use it:
- In your WordPress dashboard, go to Plugins and click Add New.
- Search for Redirection, install it, and activate it.
- Go to Tools and select Redirection, then complete the setup wizard.
- Enter the old URL in the Source URL field and the new URL in the Target URL field.
- Choose the HTTP code, usually 301 for permanent moves, and click Add Redirect.
The plugin also logs 404 errors, helping you identify broken URLs that need redirects, and it can automatically create redirects when you change a post's slug.
Method 2: Use an SEO Plugin
Popular SEO plugins such as Rank Math and Yoast SEO Premium include redirect managers. In Rank Math, enable the Redirections module, then add redirects from its dashboard. Yoast SEO Premium automatically prompts you to create a redirect when you delete or change the URL of a post. Using your existing SEO plugin avoids installing additional software.
Method 3: Edit the .htaccess File
If your WordPress site runs on an Apache server, you can add redirects directly to the .htaccess file in the root directory. Access it via your hosting control panel's File Manager or an FTP client. Add rules above the WordPress block, for example Redirect 301 /old-page/ https://example.com/new-page/. Server-level redirects are fast because they execute before WordPress loads. Always back up the file before editing.
Method 4: Hosting Dashboard Redirects
Many managed WordPress hosts provide redirect tools in their dashboards. These redirects are handled at the server or edge level, offering excellent performance without plugins. Check your host's documentation to see whether this feature is available.
Method 5: Custom Code in functions.php
Developers can create redirects using WordPress hooks. Adding a function attached to the template_redirect action allows you to check the requested URL and call wp_redirect with the destination and status code, followed by exit. This method is flexible but requires coding knowledge and should be added through a child theme or a code snippets plugin to avoid losing changes during theme updates.
Redirecting an Entire WordPress Site
When moving to a new domain, you need to redirect every old URL to its counterpart on the new domain. This is best done with a rule in .htaccess or your server configuration that preserves the path. Afterward, use the Change of Address tool in Google Search Console to notify Google of the move.
Best Practices
- Use 301 redirects for permanent changes and 302 for temporary ones.
- Redirect to the most relevant page rather than the homepage.
- Avoid redirect chains and loops.
- Update internal links and menus to point directly to new URLs.
- Regularly review 404 logs and create redirects for broken URLs.
- Limit the number of redirect plugins to avoid conflicts.
Testing Redirects
After creating a redirect, open the old URL in a private browser window to confirm it reaches the new page. Use an online HTTP status checker to verify the correct status code. If a redirect does not work, clear your caching plugin and CDN caches, since cached responses may override new rules.
Redirects During a Redesign
Redesigns often change URL structures. Before launching a new design, create a spreadsheet mapping each old URL to its new destination, implement redirects, and test them on a staging site. Pairing a careful redirect plan with thoughtful website design ensures that both search engines and visitors transition smoothly to the improved site.
Conclusion
Redirecting a web page in WordPress can be done with plugins like Redirection, SEO plugin redirect managers, .htaccess rules, hosting tools, or custom code. Choose the method that fits your technical comfort and site size, follow best practices to avoid chains and loops, and test thoroughly. With proper redirects in place, your WordPress site can evolve without losing traffic or search rankings.
