{"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 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 \u00a0<\/em><\/p>\n \u00a0<\/em><\/p>\n You\u2019ve most likely come into contact with a 404\u00a0error without realizing it. Imagine: On the web, errors are labelled with numeric codes known as HTTP status codes. 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 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 <\/p>\n <\/p>\n Where do 404\u00a0errors come from? Planning for how you\u2019ll deal with \u201ccontent not found\u201d A \u201ccontent not found\u201d error is displayed when a page\u2019s URL leads to content that\u2019s no 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 \u00a0<\/em><\/p>\n A website contains hundreds upon hundreds of components that affect SEO. But not Let\u2019s go back to my online plant shop example. The text of my product pages\u2019 URLs 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 Florist.com\/en\/flowers\/roses<\/span>, is a lot less mysterious!<\/span><\/p>\n \u00a0<\/em><\/p>\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 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 \u00a0<\/em><\/p>\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 Once you\u2019ve got this list, several options are open to you depending on the technology <\/p>\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 is not very widely known, even to the developer community. But it\u2019s 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> So say I\u2019m getting rid of my 20\u00a0types of succulents. I need to remember the French- 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
\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
\n404\u00a0errors?<\/p>\nWHAT\u2019S A 404 ERROR?<\/span><\/h2>\n
\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
\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>\nWhy is it so important to fix \u201ccontent not found\u201d errors?<\/span><\/h3>\n
\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>\nHow do I avoid 404 errors?<\/span><\/h2>\n
\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
\nlonger available online because it was either:<\/p>\n\n
The importance of URLs for SEO<\/span><\/h2>\n
\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>\nThe importance of URL text<\/span><\/h3>\n
\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
\nstand for? Roses? Daisies? Daffodils? <\/span><\/p>\nThe importance of URL readability<\/span><\/h3>\n
The importance of URL stability<\/span><\/h3>\n
\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>\nHow do I fix 404 errors?<\/span><\/h2>\n
\nGoogle Search Console, Screaming Frog<\/a> or even SEMRush. <\/span><\/p>\n
\nyour site uses.<\/p>\nWordPress, Shopify\u00a0and other popular CMS: Plugins<\/span><\/h3>\n
The htaccess file: An advanced solution<\/span><\/h3>\n
\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
\n<\/span>Florist.com\/en\/succulents\/aloe<\/span>
\n<\/span>Florist.com\/en\/succulents\/echeveria<\/span><\/span>
\n<\/span>etc.<\/span><\/p>\n
\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>\nServer-side redirects<\/span><\/h3>\n