Tools Web Development

Beginner’s Guide to WordPress Redirection or How to Deal With Annoying 404’s

5/5 (2)

If you launched redesign of existing website, removed post or pages, or decided to change your permalinks, there is a huge chance your URL structure might change too. URL is a unique website address which helps you find a certain page in world wide web. If at least one character of the URL is changed, your users will land to 404 error (which is page not found).

That’s why redirects is a weapon number one to fight with annoying 404 pages. So, let’s get to know how to use redirects in WordPress and deal with 404 pages once and for all!

In a case page has been removed, visitors would see 404 page. However, if the content has been moved to different location of the site, you need to redirect visitors to other location.

In this guide we got covered all the questions regarding WordPress redirection: why it is so important, types of URL redirects, how to deal with 404, and how to easily setup and monitor your redirections in different ways. But first let’s find out why WordPress redirections are so important.

What is Redirection in WordPress?

Redirect is a way for your website to send a quick message to a browser and notify that the page has been moved, and point user to a different page instead. So, why you need to take time and set up your WordPress redirections? There are several reasons for it.

For your users:

  • If your website is quite old and has useful content, there are chances that users bookmarked some pages. (And keep coming back to your site using these bookmarks)
  • When a new site is launched with different URL structure, these bookmarks will show that the page is not found.

For search engines:

  • Obviously, your old URl structure was indexed by search engines.
  • If your new site changes the indexed URL structure, search engines would show pages are not found while the next crawl, which may seriously hurt your ranking (and overall SEO).

Types of URL Redirects

There are several types of WordPress redirects:

  • 301 - Permanent Redirect

    It’s used to tell search engines that the page were moved. In 99% it is the only type of redirect you need.

  • 302 - Temporary Redirect

    It’s used to tell search engine that the page were moved, but not forever.

  • 303 - See Other Redirect

    It may used on e-commerce sites during checkout process to ensure pages that has one-time data are not refreshed or bookmarked.

  • 307 - Temporary Redirect

    It’s similar to 303 with some changes the way information pass from page to page.

  • 308 - Permanent Redirect

    It’s similar to 307, but with permanent status.

What is 301 Redirect?

Let’s get a closer look at 301 WordPress redirect which is the most common one. It’s named after HTTP response status code 301, which informs search engines that a page was permanently moved.

301 redirects ensures that page rank and any other useful page info is transformed to its new URL. It means that all qualities of the redirected page will be passed into the detour page, which includes Page Rank, Page Authority, and traffic value. The old page will be removed from Google’s index and the new one will replace it.

wordpress-redirection-guide

You should use 301 redirect whenever a page URL was changed in order not affect search engine ranking and traffic.

You need to create 301 redirect when you’re planning to remove a page or post to replace it with new content.

You need to create 301 redirect when you’re going to change permalinks of your port or page.

If you don’t create redirects, your users will see 404 Page not found message. It’s not only bad for users and usability, but also can impact your site’s SEO.

How to Track 404 and Redirect Them

In order to see if your website has any 404 errors, you need to login to Google Webmaster Tools and go to Crawl Section. Then go to Crawls Error section, there Google highlights any page of your site that is unable to index.

wordpress-redirection-guide

See the screenshot from Webmaster tools above.

Redirect Page Using Htaccess

I’m going to show you a few ways to redirect pages of your WordPress site, so you can choose the one convenient for you.

One tiny incorrect character in your .htaccess file is enough to put your website down, so keep it serious. Obviously, you should create a backup of the file before changing it in any way. It will help you to restore the file in a case something goes wrong.

If you use apache server, you can create 301 redirections with .htaccess file. You need just specify old and new locations. It can be done with the following code:

Redirect 301 /oldpage.html http://www.yourwebsite.com/newpage.html

You can redirect folder the same way. In fact, you can redirect the whole website using this code:

Redirect 301 / http://www.yournewwebsite.com

To make sure your redirection is working, load the page you’re redirecting. If everything is okay, you will be redirected to a new page.

Top 5 WordPress Redirect Plugins

If you’re not that tech-savy to use .htaccess file or PHP, or Java, there are a lot of redirection WordPress plugins that may do all the hard work for you. WordPress does not require to be a programmer to maintain a website.

Redirection

wordpress-redirection-guide

With over half a million active installs, Redirection plugin is the most popular choice. It features 301 redirects and 404 error tracking. It also can help you to manage broken links on your site with more advanced options. It helps you to monitor all 404 errors and set them these to 301 redirects. It can also auto-generate redirects when you update a URL.

Quick Page/Post Redirect Plugin

wordpress-redirection-guide

Quick Page/Post Redirect Plugin has over 200,000 active installs which makes it a popular solution. For usual 301 redirects this plugin offers you Quick Redirects. It’s quite simple to use: just enter the requested URL and destination URL and the plugin will do the rest. This way to can fix incorrect permalinks, changed URLs, and content which has been moved. The plugin also has Individual Redirects which enables you to specify the redirection location and type.

Simple 301 Redirects

Simple 301 Redirects would be useful for WordPress beginners and those who do not like advanced settings and complicated admins. This plugin deals with 301 redirection when you permanently moved content from one location to another. This plugin will be extremely useful if you are going to change domains or hosts.

Safe Redirect Manager

wordpress-redirection-guide

Safe Redirect Manager can help you to redirect existing posts and pages. It allows redirects to whitelisted hosts only taking care about your security. This plugin is quite handy if you worry about security of your automated options, like redirects.

All 404 Redirect to Homepage

This amazing WordPress plugin can help you to fix 404 error links and redirect them to the homepage with 301. This plugin is very useful for your site’s SEO.

***

If you enjoyed this brief guide on WordPress redirection, feel free to like and share it via social media. Don’t hesitate to subscribe to our newsletter. More useful posts are on the way!

Leave a Reply

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