{"id":1410,"date":"2020-05-04T16:35:18","date_gmt":"2020-05-04T20:35:18","guid":{"rendered":"https:\/\/rablab.ca\/seo-how-do-i-fix-404-errors-on-a-website\/"},"modified":"2024-07-23T14:21:17","modified_gmt":"2024-07-23T18:21:17","slug":"how-to-fix-404-errors","status":"publish","type":"post","link":"https:\/\/rablab.ca\/en\/blog\/how-to-fix-404-errors\/","title":{"rendered":"SEO: How do I fix 404 errors on a website?"},"content":{"rendered":"

Google and other search engines use confidential and complex algorithms<\/a> that rank web content according to how \u201crelevant\u201d it is to an individual\u2019s search query. Although web professionals<\/a> don\u2019t have access to said algorithms, we do have some clues as to what to prioritize when optimizing a website. This technical expertise is referred to in a few different ways\u2014natural or organic positioning are common terms\u2014but the best-known name for it is search engine optimization (SEO).<\/p>\n

Optimal SEO needs several elements to be taken into account on each page of a website: page titles, word counts, hyperlinks in the text, the use of sub-headers\u2026
\nBut SEO isn\u2019t just about what users can see!
\nThe architecture and code of a website can also be optimized, and they\u2019re just as important as the content of pages. <\/span><\/p>\n

One of the technical components to watch out for in your SEO process<\/a> is the 404 error. These can have a major impact on your organic positioning. But first, what are
\n404\u00a0errors?<\/p>\n

\u00a0<\/em><\/p>\n

WHAT\u2019S A 404 ERROR?<\/span><\/h2>\n

\u00a0<\/em><\/p>\n

You\u2019ve most likely come into contact with a 404\u00a0error without realizing it. Imagine:
\nyou\u2019re just browsing a site without a care in the world. You click on the link to a page, and all of a sudden, there it is: \u201cpage not found.\u201d 404 is the error code for content that\u2019s missing. <\/span><\/p>\n

On the web, errors are labelled with numeric codes known as HTTP status codes.
\nThese codes can refer to errors, but also states (both temporary and permanent). You\u2019re unlikely to encounter many errors \u201cin the wild\u201d besides error 404, but still, here are some of the
most common codes<\/a>:<\/p>\n

200 : The Holy Grail of codes. It means everything is A-OK!<\/span><\/p>\n

403 : \u201cForbidden\u201d content. The server refused your browser\u2019s request to access the page.<\/span><\/p>\n

410 : Deleted content. For example, when a store removes a product.<\/span><\/p>\n

And there are many more!<\/p>\n

Why is it so important to fix \u201ccontent not found\u201d errors?<\/span><\/h3>\n

To establish their results ranking, search engines take a very wide range of factors into account, a crucial one being \u201cdoes the site function properly on a technical level?\u201d
\nAnd although error 404 is fairly benign, it is still an error. The more errors a site is plagued with\u2014technical or content-related oversights (e.g., broken links), badly designed backlinks and so on\u2014the more its SEO effort will suffer. Are you worried about whether your site contains unsuspected errors?
Ask us to take a look!<\/a><\/p>\n

 <\/p>\n

How do I avoid 404 errors?<\/span><\/h2>\n

 <\/p>\n

Where do 404\u00a0errors come from? Planning for how you\u2019ll deal with \u201ccontent not found\u201d
\nerrors is all well and good. But you still need to take steps to prevent them from popping up in the first place!<\/p>\n

A \u201ccontent not found\u201d error is displayed when a page\u2019s URL leads to content that\u2019s no
\nlonger available online because it was either:<\/p>\n

    \n
  1. Removed from the site, or<\/li>\n
  2. Moved to a different location (with a new URL), but a user tried to access the content at its old address<\/li>\n<\/ol>\n

    For example:<\/p>\n

    Say I\u2019m a florist wanting to expand the selection of plants available on my online store. I started with a page for \u201cCactus plants and succulents,\u201d but now I\u2019d like to divide these products into two separate categories, each with their own page.<\/p>\n

    Florist.com\/en\/plants\/cactus-succulents<\/span><\/p>\n

    would become<\/p>\n

    Florist.com\/en\/plants\/cactus\/<\/span><\/p>\n

    Florist.com\/en\/plants\/succulents\/<\/span><\/p>\n

    What happens if someone visits Florist.com\/en\/plants\/cactus-succulents<\/span>? If I haven\u2019t taken any actions to redirect traffic going to this URL, it will produce a \u201cpage not found\u201d error (the infamous 404) to all users who have this page bookmarked or saved in their browser, click on a link in one of my old social media posts, etc.<\/p>\n

    \u00a0<\/em><\/p>\n

    The importance of URLs for SEO<\/span><\/h2>\n

    \u00a0<\/em><\/p>\n

    A website contains hundreds upon hundreds of components that affect SEO. But not
    \nevery element has the same weight to Google when it\u2019s determining a site\u2019s organic
    \nranking. One element that\u2019s often neglected at the design stage but which crucially
    \nimportant to organic SEO is page URLs.<\/p>\n

    The importance of URL text<\/span><\/h3>\n

    Let\u2019s go back to my online plant shop example. The text of my product pages\u2019 URLs
    \nshould express what the page will contain by naming the contents precisely. Moreover, when a site is multilingual, you need to indicate the language in which the page will be displayed (en\/fr\/es\/de\/\u2026). <\/span><\/p>\n

    For example: <\/span><\/p>\n

    Florist.com\/en\/flowers\/001<\/span><\/p>\n

    The page is going to be about flowers, sure, but which ones? What flower does \/001
    \nstand for? Roses? Daisies? Daffodils? <\/span><\/p>\n

    Florist.com\/en\/flowers\/roses<\/span>, is a lot less mysterious!<\/span><\/p>\n

    \u00a0<\/em><\/p>\n

    The importance of URL readability<\/span><\/h3>\n

    Ideally, a good URL can be understood by a human.<\/span><\/p>\n

    For example:<\/p>\n

    Florist.com\/en\/bouquets\/events\/wedding.<\/span>, Seeing this, you should already have an idea of what sort of product you\u2019ll see when you click the link.<\/span><\/p>\n

    Florist.com\/00156_5_\/hj2k3e290?00GT10gtgGGDQr5tT<\/span>, though? That\u2019s not exactly transparent\u2026<\/span><\/p>\n

    \u00a0<\/em><\/p>\n

    The importance of URL stability<\/span><\/h3>\n

    Usually, editing a URL in most content management systems (CMS; the platform your website is managed from) is a cinch. However, this creates the need to set up proper redirect and can easily lead to errors. That\u2019s why URL stability is an important factor for SEO.<\/p>\n

    In addition, page longevity is also taken into account, with older pages being considered more authoritative (i.e., having stayed relevant over time). To recognize such a page, Google needs its address\u2014its URL.<\/p>\n

    It\u2019s just like when you move house: you may take everything with you, but you don\u2019t
    \nleave with the walls or the address numbers on the front door. Same idea here. If you
    \nhaven\u2019t changed your delivery address, your packages will end up at your old address.
    \nYour visitors won\u2019t reach the right page if you haven\u2019t set up a proper redirect.<\/p>\n

    \u00a0<\/em><\/p>\n

    How do I fix 404 errors?<\/span><\/h2>\n

    \u00a0<\/em><\/p>\n

    Let\u2019s get to the heart of this topic! There are a few ways to fix a 404\u00a0error. <\/span><\/p>\n

    First, you need to extract a list of your broken links. To that end, you can use your
    \nGoogle Search Console, Screaming Frog<\/a> or even SEMRush. <\/span><\/p>\n

    Once you\u2019ve got this list, several options are open to you depending on the technology
    \nyour site uses.<\/p>\n

     <\/p>\n

    WordPress, Shopify\u00a0and other popular CMS: Plugins<\/span><\/h3>\n

    Many plugins are available for managing redirects between pages. Most of these tools are fairly simple to use: you\u2019ve got one column in which you enter the old URL and a second column for typing in the new one. Once the redirect is saved, it\u2019ll usually be online and accessible right away!<\/p>\n

     <\/p>\n

    The htaccess file: An advanced solution<\/span><\/h3>\n

    The htaccess is not very widely known, even to the developer community. But it\u2019s
    \nextremely handy\u2014some would say essential!\u2014for managing redirects. Using this file,
    \nyou can code redirects to create paths from your old URLs to the new ones.<\/p>\n

    You can also redirect domains using this file, or redirect HTTP sites to HTTPS.<\/p>\n

    Back to the florist again:<\/p>\n

    Suppose I decide that I no longer want to sell succulents on my store. What do I do with all those old URLs?<\/p>\n

    Florist.com\/en\/succulents\/crassula<\/span>
    \n<\/span>Florist.com\/en\/succulents\/aloe<\/span>
    \n<\/span>Florist.com\/en\/succulents\/echeveria<\/span><\/span>
    \n<\/span>etc.<\/span><\/p>\n

    So say I\u2019m getting rid of my 20\u00a0types of succulents. I need to remember the French-
    \nversion URLs (or those in any other language, if applicable) when redirecting, so this
    \ncomes out to 40 URLs. Setting up redirects one by one could get tedious, but htaccess lets me create bulk redirects.<\/p>\n

    WARNING: <\/span>: Htaccess files are very finicky things and can quickly cause you headaches if you don\u2019t have much experience with them. But hey, what a coincidence, we do!<\/a> ?.<\/span><\/p>\n

     <\/p>\n

     <\/p>\n

    Server-side redirects<\/span><\/h3>\n

    Server-side redirects are something of a specialty for website hosting experts. Using DNS<\/a> to redirect URLs is a more complex, but extremely efficient process. It\u2019s used not for page-to-page redirects, but rather for domain name changes, or when hundreds or even thousands of pages disappear from a site (made-up example: imagine Ikea decided to stop selling outdoor furniture).<\/span><\/p>\n

    When wrestling with a large number of URLs, you should consider using server-side redirection. Although the htaccess file can come in very handy, it may start to bog down a site\u2019s speed if it has to handle too many redirects.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Google and other search engines use confidential and complex algorithms that rank web content according to how \u201crelevant\u201d it is to an individual\u2019s search query. Although web professionals don\u2019t have access to said algorithms, we do have some clues as to what to prioritize when optimizing a website. This technical expertise is referred to in […]<\/p>\n","protected":false},"author":1,"featured_media":1151,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"How Do I Fix 404 Errors On a Website? The Complete Guide | Rablab","_seopress_titles_desc":"What is a 404 error? How do I fix it? To know where to start, consult our article on 404 errors! We tell you everything you need to know! Click here!","_seopress_robots_index":"","footnotes":""},"categories":[81],"tags":[],"class_list":["post-1410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/posts\/1410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/comments?post=1410"}],"version-history":[{"count":1,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"predecessor-version":[{"id":2426,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/posts\/1410\/revisions\/2426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/media\/1151"}],"wp:attachment":[{"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rablab.ca\/en\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}