How to Redirect 404 pages in WordPress

How to Redirect 404 pages in WordPress? There might be a situation where you want to change the URL of the post or page and if someone has bookmarked your old URL it will throw 404 page not found error. Sometimes there might be backlinks pointing to old URL or mismatch of the URL but when the user clicks it will throw 404 error and even you might get the broken link report in webmasters.

How to Redirect 404 pages in WordPress

Use Redirection Plugin to handle 301 redirections

With more than 500k installs and rating above 4.5 Redirection plugin is one of the best plugin for 301 redirections and it even supports regular expression. First thing is to install the Redirection Plugin and activate it. Upon activation navigate to Tools » Redirection to configure your redirects.

How to Redirect 404 pages in WordPress

In the Redirection page click on the redirects link and you should get the above screen where you can add new 301 redirections.

Step 1: Enter the source URL. The source URL can be your old blog post or a backlink which is reported as 404 in webmasters.

Step 2: In the Match dropdown select the option which says URL and Referrer, this makes sure that even if someone refers to the old URL it will be redirected properly to the right post. If it’s not a referrer link then simply choose URL only option and continue to next step.

Step 3: In the action dropdown select Redirect to URL option.

Step 4 : In the target URL enter the destination URL to which you would like to redirect too. If you can’t redirect to any posts then you could also redirect all the broken links to your home page. Click on Add Redirection to add the 301 rule.

The plugin has one more great feature. If you modify any URLs in the existing post then the plugin will set up an automatic redirect to the new URL. This is one of the best features and it’s a MUST have plugin for any bloggers.

Features of Redirection Plugin

  • 404 error monitoring – Monitors all the 404 errors that occur on your site and provides you the log report.
  • Redirection methods – redirect based upon login status, redirect to random pages, redirect based upon the referrer!
  • Automatically adds 301 redirection rule when you change the existing post URL.
  • Regular Expression support
  • Apache .htaccess is not required – works entirely inside WordPress.
  • Redirection statistics telling you how many times a redirection has occurred, when it last happened, who tried to do it, and where they found your URL.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge