In this post, I will show you how you can easily fix your 404 error pages in WordPress using some free tools.
WordPress is without a doubt ‘the best’ open-source website building tool available. Would you agree?
Personally, I could not imagine myself building websites or even blogging with any other platform or CMS.
Creating content in WordPress is a lot more fun than it used to be, especially now that we have access to various front-end visual editing tools.
Yep, creating content in WordPress is pretty awesome, and it’s rewarding too, knowing that you’ve created something that’s going to provide value to people for many years to come.
But, what happens when the day comes that you decide to remove a piece of content from your WordPress blog or website?
Oh yes, that’s right, you automatically generate a nice unwanted “404 error page”.
Removing one page isn’t so bad, but removing many pages can cause some issues. You can literally end up with a lot of 404 error pages.
So, what can you do? Well, you can fix them!
That’s right, no one likes seeing 404 error pages. It certainly doesn’t provide users with a great experience on a website.
The first thing I do when I come across one is immediately hit the back button. Unless, the 404 pages has something useful to offer, which is rare.
Recommended Video: How To Create A Custom 404-Error Page Using Oxygen Builder
And, if I happen to find one of these error pages on my own blog, I usually act quickly to try and fix it.
As a webmaster, you want your website or your blog to be a place where users can find great information, value, and resource, right?
If you’re totally new to WordPress in general and don’t really know what a 404 error page is, let me explain. Chances are you will have come across a few in your time whilst browsing the web.
A 404 Error Page is a default message page telling the user that the page they’re looking for on a website no longer exists.
Error pages typically look a little something like this –
Pretty boring, right?
This used to be my error page on Magnet4Blogging. These days, it looks more like this –
Notice the small ‘Report broken link’ link at the bottom. This is useful because should someone come across this page, they can report to me that the link is either broken or faulty.
OK, so let’s say you have a lot of posts, pages, tags, categories, etc. on your WordPress website.
Now let’s say a day comes along when you decide to delete a few of those pages, along with some unwanted tags, categories, and heck, maybe a few dozen blog posts in the process.
Now, you’re probably thinking, why would anyone want to delete content from their blog?
If you’re doing a content audit, for example, and you’re wanting to remove redundant or low-value posts or pages, you will want to delete some of them.
Or, if you decide to combine two articles to create a pillar article, you would delete the article you don’t want, right?
Now, what happens when someone visits a page, post, category or tag that has been deleted?
That’s right, they see a page with the message: 404 Error Page Not Found as I mentioned earlier.
Because you removed/deleted that destination URL, therefore the page they’re looking for no longer exists, so instead your visitors will see an auto-generated 404 error page like the one shown above.
Of course, you might be thinking about this. The big deal is that it affects user-experience.
Anyone arriving at that deleted page/destination on your website from whatever source will find a 404-error page waiting for them, and that makes for bad user experience.
Just because you deleted the URL from your WordPress website, it doesn’t mean that no one will ever try to access it again. This is because you may or will have both native and inbound links pointing to the URL you removed, and that is now a generated 404 Error page.
These could be inbound links from other sites, social media posts, videos, etc.
No, they are not bad for your website, however, like I said, they can create a bad user experience for your visitors.
Other reasons why a user might see a 404 error page not found on your website is, for example, if you’ve spelled the URL incorrectly from a native or external source.
Let’s say you’re writing a guest post and link to one of your posts on your own website and accidentally misspell the URL, without knowing it, you’re going to generate a 404 error page message.
Making changes to your website’s permalink structure can also generate 404 error messages and I don’t recommend doing this unless you really have to.
There are some mixed debates about whether 404’s actually affect search engine rankings. Or, whether you might receive a penalty from Google.
To be honest, I do not know, however, there is an interesting post over on the Moz Blog about 404 pages and SEO. It’s quite detailed and you should check it out when you get some time.
Regardless of whether 404’s are good or bad for SEO like I said to you, they can create a bad user experience on your site, and that my friends, Google does not like.
Google wants to see that you care about your blog or website and your users, so it’s super-important that your content structure is top-notch.
If your WordPress blog or website ‘is your business’, your breadwinner, then I don’t think you would want too many of your website visitors bouncing away because you have too many error pages on your site, right?
So the cure is this:
Fix your 404 error pages.
One way to fix your error pages is to use 301 redirection.
Confused?
OK, let me explain really quickly.
301 Redirection is configured so that when someone visit’s a page that is no longer available on your website, they’ll be automatically redirected to another page. This could be another page on your website or blog post.
The important thing to remember when using 301 redirections for deleted pages is to try and redirect users to a page that is similar to the page you removed. In other words, relevant.
Sometimes this can be hard if you don’t have many blog posts to work with, however, do your best.
To make 301 redirections really easy for my own website, I like to use a good old-fashioned plugin.
In my opinion, there are only 2 plugins you should really care about for 301 redirections, here they are –
Pretty Link – This is a fantastic plugin perfect for redirecting ugly links and making them no-follow such as affiliate links and long URL’s on your page that you want to shorten, etc. You can also use Pretty Link to redirect 404 generated pages.
Redirection – The best plugin to use, by far, is the Redirection plugin. I use this very plugin to redirect all of my 404 error pages. This is the plugin that I’ll be showing you how to use to fix your 404 error pages below.
If you already have the Redirection plugin installed on your WordPress blog, you’re ready to rock-and-roll.
If you haven’t got this installed yet, then download it and get it installed and activated!
Right, finally, let’s begin.
I’m going to assume that you have a Google Webmasters account, as all website owners should 🙂
So, open a new tab in your web browser and navigate sign in to your Google Webmaster account.
Then click on the respective domain name who’s 404 error pages you want to analyze and fix.
Next, click on Coverage (Under Index Tab) > Excluded. See below.
Then scroll down the page a little bit until you find Not Found (404). Click on this link to open up the Not Found (404) information page. See below.
What you should now see is a list of all the pages within your domain that are returning a 404 error page not found. In the two images above you will see it says I have 19 affected pages.
Next, click on any one of those URLs in the list you see in your console and a new column will appear on the right-hand side of your screen. See below.
Now you can do a few things here –
What you want to do first is test the URL from the search console to validate that this URL is, in fact, returning a 404. See image below.
When the page opens up in your browser and you see a 404, it’s time to fix it.
If you don’t find the Google Webmaster Console useful enough, I recommend you check out Hexometer. Hexometer is a website health and performance monitoring tool. Under the broken links tab, you can access a plethora of data about the broken links and source on your website.
There is also a useful broken link checker feature in the SEOPressor Connect SEO plugin for WordPress. Check it out here.
OK, let’s get back to using Google Webmaster Console.
In your WordPress site dashboard, navigate to Tools > Redirection. Click on the 404’s tab-link, as shown below.
As you will notice from the screengrab above, the Source URL in the 404 logs is similar to the one in your Google Webmasters error page report.
Since I already clicked on the URL /ebook1/ in my search console to validate it, it’s now appeared here in my log file in WordPress.
All the error 404 pages that you click on in your Search Console is recorded here in real-time using this plugin.
This is useful and saves a lot of time having to find and cross-reference 404 URLs between the Search Console and 301 Redirections plugin.
Now, let’s fix this 404 error and redirect the old URL to another suitable active URL.
Remaining in your WP dashboard, click on Redirects to add a new one. See image below.
First, add the redundant URL into the Source URL box.
Then add the active URL of the page you want the redundant URL to be redirected to into the Target URL box, then select Redirections from the group options and hit Add Redirection. See the image below.
Done!
How easy was that?
You can view all the 301 redirections you create on the same page.
Here you can manage and see how many hits the URL is receiving, toggle, or move to another group or folder.
Should you wish to delete a redirect in the future, perhaps because it’s no longer getting any hits or you no longer need it to be redirected, then you can do so with a single click.
That’s pretty much it. That’s how you fix 404 error page not found on your WordPress website, all without losing your marbles.
Of course, all we’ve done here is fix one single error page. If you have many errors, then as you can imagine this process will take some time to do. However, it’s worth the time if you’re serious about creating a more user-friendly website.
If you have any questions please don’t hesitate to get in touch with me. I’m always here to help.
Best of luck!