I love WordPress, and I’m sure you do too. I can’t imagine myself building websites using any other platform, other than WordPress.
WordPress is extremely flexible, yet so simple to use, at least once you’re past the newbie stage in any case.
Anyhow, enough of me ranting on about how WordPress is so great, I’m sure you already know.
In this post, I want to show you how to do something very important for your WordPress website or blog. I’m going to show you how to fix those dreaded 404 error page not found.
I despise them personally, and whenever I find one on my website I immediately take action to try and fix it.
What are 404 Error pages anyhow?
If you’re completely new to all of this, let me explain in simple terms what a 404 error page is.
It is simply a page that has no existence on your site.
OK let’s say you have a lot of posts, pages, tags, categories in your WordPress website. And let’s say a day comes along when you decide to delete a few of those pages, along with some tags, categories, and heck maybe a few blog posts as well.
Now, what happens when someone visits a page, post, category or tag you deleted?
They see a page with the message: 404 Error Page Not Found.
Are you following me?
Because you removed/deleted that destination URL, it no longer exists, so instead your visitors will see a generated 404 error page. Like this one…
That being said, you have to remember that just because you deleted the URL from your WordPress website, it doesn’t mean that no one will ever find it again.
You may have both internal and external links pointing to the URL you deleted.
Are 404’s bad for your website?
No, they are not bad for your website, however that doesn’t mean you don’t need to fix them.
A 404 error page is simply a message to let your visitors know that the page they’re looking for no longer exists.
Like I said if you delete a page, post, category or tag from your site, the original URL will simply display a 404 error message.
Other reasons why a user might see an error 404 page not found on your website is if they’ve clicked on a site link that has been misspelled.
Or perhaps you’ve recently changed the domain name of your website, or you’ve made some changes to your permalink structures.
404 Error pages and search engines
There are some mixed arguments about whether 404’s actually affect search engine rankings or not.
Personally, I don’t know, however, there is an interesting post over on the Moz Blog about 404 pages and SEO. You should check it out when you get some time.
Regardless whether 404’s are good or bad for SEO, I know one thing they’re not good for, and that’s your site users.
It’s pretty logical really because if someone is looking for an article on your blog or website and ends up landing on a 404 error page, they may get miffed that they couldn’t find what they were looking for, and move onto the next website.
If your blog or website is your business, I don’t think you want too many of your website users bouncing away because you have too many error pages on your site.
Fix your 404 error pages, and I will show you how to do just that, the simplest way ever.
Fixing your 404 Errors in WordPress using 301 Redirection
One way to fix your error pages is to use 301 redirection.
OK let me explain real quickly.
When someone visit’s a page that is no longer available on your website, they’ll be redirected to another page via a 301 redirection.
This could be another page on your site that is somewhat related to the page you deleted. Maybe a blog post on a similar topic.
To make 301 redirections really easy for myself, I like to use a good old fashioned plugin.
In my opinion, there are only 3 plugins you should really care about for 301 redirections, here they are –
Better Links Pro (aff) – This is a very powerful premium affiliate masking/redirection plugin, and one that I’ve been using myself for quite some time. I use Better Links Pro mainly to create 301 redirection for my affiliate links.
Pretty Link – This is another fantastic plugin perfect for redirecting ugly links and making them no-follow such as affiliate links, long URL’s on your page that you want to shorten etc.
Redirection – Last but not least is this one. Redirection is a popular redirection plugin. I use this very plugin to redirect all my 404 error pages. This is the plugin that I’ll be showing you how to use in this post, to fix your 404 error pages below.
If you have the Redirection plugin already installed on your WordPress site, you’re ready to roll.
If you haven’t got this installed yet, let’s do this now!
Finding 404 Errors in Google Webmaster
Open a new tab in your web browser and navigate 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 Crawl > Crawl Errors, and then click on the Not Found tab as shown below.
In the Not Found tab, you’ll see a list of all the pages within your domain that are returning as 404 error page not found. In the image above you will see it says I have 13-page errors.
Next click on any one of those URL’s in the list and a pop-up box will appear displaying all the information about that URL’s error page.
The Error Details tab shows when Google last crawled this page, and when the error was first detected. The Linked From tab shows which external and internal pages are linking back to this redundant page. See image below.
So whatever URL you selected, the next step is to click on it yourself, to ensure that it is actually a 404 error page.
Fixing 404 errors in your WordPress site
Once you’ve validated the URL is, in fact, an error, head back to your WordPress site dashboard and go to Tools > Redirection. Click on the 404’s as shown below.
You should notice that the Source URL in the 404 log is similar to the one in your Google Webmasters error page report. The one you just clicked on.
All the error 404 pages that you click on is recorded here in real-time. You should recognize the one you just clicked on.
Now let’s fix this 404 error and redirect the URL to another suitable active URL. Click on Redirects to add a new one. See image below.
Now add the redundant URL into the Source URL box.
Add the active URL of the page you want the redundant URL to be redirected at into the Target URL box, and hit Add Redirection.
It’s that easy!
You can view the 301 redirections you’ve just created on the same page, Redirects. See image below.
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 redirecting it, then you can do so with a single click.
Marking as “fixed” in Google Webmaster Tools
You’re not finished yet, head back to your Google webmaster tools account, and mark the 404 error page URL you’ve just created a redirection as “fixed”. See image below.
That’s pretty much it. That’s how you fix 404 error page not found on your WordPress website.
Of course, all we’ve done here is fix one error. 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 passionate about creating a more user-friendly website.
In addition to this tutorial, I created a video showing you how to fix error pages in more detail should you want to check it out. You can find it here on my YouTube channel. Or watch it below.
If you have any questions please don’t hesitate to get in touch with me. I’m always here to help.