
WordPress powers a significant portion of websites on the internet, and as those sites grow, URL changes become inevitable. You might update a post slug, delete outdated content, restructure categories, or migrate to a new domain. Each of these changes requires redirects to keep visitors and search engines on the right path. This guide explains how to redirect a web page in WordPress using plugins, built-in tools, and server configuration, along with best practices to protect your SEO.
WordPress Expertise from AAMAX.CO
Managing redirects is just one part of maintaining a healthy WordPress site. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their WordPress specialists handle custom themes, plugin configuration, migrations, and technical SEO, ensuring redirects are implemented correctly during every change. Through strategic website design and development, they help businesses build WordPress sites that are fast, secure, and easy to manage.
Why Redirects Matter in WordPress
When a URL changes without a redirect, visitors following old links, bookmarks, or search results encounter a 404 error. This frustrates users and causes search engines to drop the old URL from their index, along with any rankings it had earned. A proper 301 redirect tells browsers and search engines that the page has moved permanently and transfers most of its ranking signals to the new URL.
Does WordPress Redirect Automatically?
WordPress includes limited automatic redirect behavior. When you change the slug of a published post, WordPress often stores the old slug and redirects visitors to the new URL. However, this feature does not cover all scenarios, such as changes to page hierarchies, deleted content, or category restructures. For reliable control, use a dedicated redirect method.
Method 1: Use the Redirection Plugin
The free Redirection plugin is one of the most popular tools for managing redirects in WordPress.
- In your WordPress dashboard, go to Plugins > Add New and search for "Redirection."
- Install and activate the plugin, then complete the setup wizard.
- Navigate to Tools > Redirection.
- Enter the old URL in the Source URL field and the new URL in the Target URL field.
- Select the HTTP code, typically 301 for permanent changes, and click Add Redirect.
The plugin also tracks 404 errors, making it easy to spot broken URLs and redirect them.
Method 2: Use an SEO Plugin
Many SEO plugins include redirect managers. Rank Math provides a free Redirections module, while Yoast SEO Premium and All in One SEO Pro offer redirect features. These tools can automatically prompt you to create a redirect when you change a URL or delete a post, reducing the chance of broken links.
Method 3: Use Your Hosting Control Panel
If your host uses cPanel, open the Redirects tool under the Domains section. Choose the redirect type, select your domain, enter the old path, and specify the destination URL. Managed WordPress hosts may also offer redirect management directly in their dashboards.
Method 4: Edit the .htaccess File
For sites running on Apache servers, you can add redirects directly to the .htaccess file in your WordPress root directory. Access the file via FTP or your host's file manager, and add rules above the WordPress section:
Redirect 301 /old-page/ https://www.example.com/new-page/
Server-level redirects are fast and do not depend on WordPress loading, but always back up the file before editing, since mistakes can break your site.
Method 5: Redirect with Code in functions.php
Developers can implement redirects using the template_redirect hook in a child theme's functions.php file or a custom plugin. Use wp_redirect() or wp_safe_redirect() with a 301 status code, followed by exit. This approach is useful for conditional redirects, such as redirecting users based on login status.
Redirecting an Entire WordPress Site
When migrating to a new domain, you will need to redirect every old URL to its equivalent on the new domain. Update the WordPress Address and Site Address in Settings, use a migration plugin to move content, and add a domain-wide redirect rule on the old server. Then use the Change of Address tool in Google Search Console to inform Google of the move.
Best Practices for WordPress Redirects
- Use 301 redirects for permanent changes and 302 only for temporary ones.
- Redirect to the most relevant page, not automatically to the homepage.
- Avoid redirect chains by updating old redirects when URLs change again.
- Update internal links and menus to point directly to new URLs.
- Regularly review 404 logs and fix broken URLs.
- Keep the number of plugins minimal to maintain performance.
Testing Your Redirects
After creating a redirect, clear any caching plugins and test the old URL in a private browser window. Use an online redirect checker to confirm the status code. Monitor Google Search Console for coverage issues and verify that the new URLs are being indexed.
Conclusion
Redirecting a web page in WordPress is straightforward with plugins like Redirection, SEO tools, hosting control panels, or server-level configuration. Choose the method that matches your skills and site setup, use the correct redirect type, and follow best practices to avoid chains and broken links. With well-managed redirects, your WordPress site can evolve while preserving traffic and search visibility.