HVsolar

Năng lượng mặt trời

728x90-ads

  • Home
  • Tin Tức
  • Công Nghệ
  • Information
  • Sản Phẩm
  • Dự Án
You are here: Home / Tin Tức / How to Fix Error 404 Not Found on Your Site

How to Fix Error 404 Not Found on Your Site

Tháng Mười 16, 2023 Tháng Mười 16, 2023 Bùi Gia Cẩn

Of the many potential errors you might see on your site, Error 404 Not Found is one of the tamer ones. But that doesn’t mean it isn’t frustrating when you or your visitors try to browse your site and keep running into the Error 404 Not Found message. 😒

Có thể bạn quan tâm
  • Bộ lưu điện năng lượng mặt trời
  • Ưu điểm, khuyết điểm đèn năng lượng mặt trời
  • Hợp tác cùng DAT Solar, đối tác được hỗ trợ toàn diện, gia tăng sự hiệu quả
  • Đèn chiếu sáng năng lượng mặt trời – Hiện đại, tiết kiệm điện năng
  • Hướng dẫn xây dựng chức năng sản phẩm đã xem trong WooCommerce

That’s the last thing you want first-time potential customers seeing from your brand. A 404 error can also be an indicator to you that something has changed or moved and a 301 redirect probably needs to be added for SEO.

Bạn đang xem: How to Fix Error 404 Not Found on Your Site

In this post, we’re going to try to help you get your site working again by explaining a few things below.

Check Out Our Video Guide To Fixing the Error 404 Not Found on Your Site

For example: if someone tries to access yoursite.com/post-name but you don’t have any content with the slug post-name. The visitor will then see a 404 error because, even though your web server is functioning normally, the resource that was requested doesn’t exist.

It’s not just posts or pages either, any asset missing can generate a 404 error on the server, such as a missing image file, missing JavaScript, missing CSS, etc.

Here’s a more complete definition by the Internet Engineering Task Force (IETF):

The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack of representation is temporary or permanent; the 410 (Gone) status code is preferred over 404 if the origin server knows, presumably through some configurable means, that the condition is likely to be permanent.

Whenever you, or one of your visitors, visit your website, your browser sends a request to the web server and receives back data including something called an HTTP header. The HTTP header includes HTTP status codes to explain “what happened” with the request.

Most of the time, the request works perfectly and you never actually see the HTTP status code (unless you go looking). But if something goes wrong, your web browser will usually display a message with the HTTP status code to indicate the exact problem.

Just like other error messages (500 error, 502 error, 503 error, 504 error, etc.), the Error 404 Not Found message is the result of that process.

Error Code 404 Not Found Error Type Browser protocol error Error Variations Error 404 404 Not Found HTTP Error 404 Not Found Page Not Found The requested URL was not found on this server. The page cannot be found We can’t find the page you’re looking for. The requested URL /~ was not found on this server. That’s all we know. Error Causes Issues with your site’s permalinks No redirect after moving or renaming content

What Causes Error 404 Not Found?

If you see this error on all of your site’s content, it’s typically due to an issue with your site’s permalinks. If you only see it on individual pieces of content, though, it’s most likely because you changed a piece of content’s slug without setting up a redirect.

Additionally, the 404 error isn’t always a bad thing – it’s only bad when it’s interfering with usability. And sometimes things are just out of your control!

For example, sometimes a person might just type the wrong URL in their address bar. In that case, they’ll still see a 404 error, but there’s no actual problem with how your site is configured. This is actually the desired response, and you can create your own custom 404 page to help get visitors to the right spot (we’ll show you how later on).

Error 404 Not Found Variations

Because different browsers display error messages differently, you might see a different message for this error. Other common variations include:

  • “Error 404”
  • “404 Not Found”
  • “HTTP Error 404”
  • “Not Found”
  • “Page Not Found”
  • “The requested URL was not found on this server.”
  • “The page cannot be found”
  • “We can’t find the page you’re looking for.”
  • “The requested URL /~ was not found on this server. That’s all we know.
Google 404 error page
Google 404 error page

The Error 404 Not Found message is also unique in that many sites will actually create a custom page to address the error, rather showing one of the messages above. Some themes also include custom 404 pages by default. For that reason, you might not actually see the error message at all because many sites will use funny or creative 404 pages instead.

Funny 404 page example
Funny 404 page example

Below is an example of our own 404 page at Kinsta. We include a search box and some of our recent blog posts to help visitors find what they might have been looking for. Always include search functionality on your 404 page.

Kinsta 404 page
Kinsta 404 page

Error 404 Not Found Impact on SEO

Error 404 Not Found doesn’t have any inherent negative impact on SEO. But it might have a negative impact depending on the reason for why the error is happening.

Xem thêm : 60+ Mẫu sân vườn đẹp đơn giản 2023 và nguyên tắc thiết kế

For example, if a visitor just mistypes a URL and sees a 404 error – there won’t be a negative impact on SEO. But if you have individual errors because of broken URLs, that will inhibit Google’s ability to properly crawl your site and have a negative SEO effect in that way.

Additionally, if a permalink issue is causing sitewide 404 errors, Google won’t be able to crawl any of your site’s content. In other words, always fix your 404 errors as soon as possible.

Error 404 Not Found Impact on Site Performance

Many don’t realize it, but sites that generate a lot of 404 errors can easily run into performance issues, as these responses aren’t typically cached. We saw this a lot on larger sites and it can be a big problem if you accidentally promote or get a surge of viral traffic to a 404 page.

To minimize the impact of 404 requests on site performance, we automatically cache 404 pages for 15 minutes.

If you create a new page with the same URL as the cached 404 page, we’ll automatically purge the cache so your visitors will be able to see the new page immediately. This means your site will be protected from PHP and CPU spikes caused by traffic to dynamic 404 pages.

You are probably generating more 404 errors than you think! Our MyKinsta analytics tool can help you determine the exact amount (as seen below).

404 Errors
404 Errors

You can also quickly see what the top 404 errors are. In this example below, you can see the site is missing some mobile icons, such as /apple-touch-icon.png. These are most likely in a theme or plugin’s code that is getting queried, but the actual icons were never added. Therefore, the server generates a 404 error as it can’t find the resources.

Top 404 errors
Top 404 errors

You can also check 404 errors in Google Search Console or install a third-party plugin such as Redirection which logs 404 errors. However, remember that plugins like these also have an impact on performance. It’s much better to rely on a server-level tool. That’s why we provide these tools for all Kinsta clients.

The reason these errors are bad is that many 404 pages are very resource intensive. For large sites, you’ll want to avoid a heavy 404 page. Create a simple 404 template that avoids querying the database any further if possible.

How to Fix Error 404 Not Found?

Below, we’ll cover different methods for how to fix the Error 404 Not Found message, depending on whether it’s happening sitewide or to specific content.

1. Clear Your Cache

Start by refreshing the page and double-checking the URL (typos are more common than you think).

If you’re still getting a 404 error, try accessing the link on another device. If you can see the page, the problem may be with your computer’s cache.

To clear your cache, check out our instructions on how to do it in different browsers:

  • How to Force Refresh a Single Page for All Browsers
  • How to Clear Browser Cache for Google Chrome
  • How to Clear Browser Cache for Mozilla Firefox
  • How to Clear Browser Cache for Safari
  • How to Clear Browser Cache for Internet Explorer
  • How to Clear Browser Cache for Microsoft Edge
  • How to Clear Browser Cache for Opera

2. Update Your Site’s Permalinks

If you’re experiencing sitewide 404 errors when trying to access content, the most likely cause is an issue with your permalinks (or your .htaccess file, if your host uses Apache). If you’re a Kinsta client, we utilize Nginx, so you can rule out the .htaccess file as a possible cause.

The easiest way to fix this is to update your permalink settings through the WordPress dashboard. All you need to do is go to Settings → Permalinks and click Save Changes (you don’t need to make any changes – clicking Save Changes is enough).

Regenerate permalinks in WordPress
Regenerate permalinks in WordPress

3. Set Up 301 Redirects For Moved or Renamed Content

If you’re experiencing 404 errors on a specific piece of content, the issue is likely that you:

  • Changed the URL slug for that content.
  • Moved that piece of content manually, e.g. by deleting the existing post and pasting it into a new post.

Users then try to access the content at the old location and see a 404 page instead of the resource they were expecting. The best way to fix this is to automatically redirect anyone who tries to access the old location to the new location. That way, they’ll make it to the right spot without any 404 errors. It’s also good for SEO. If you move or rename a post without adding a redirect, you lose all the domain authority attached to the backlinks pointed at that post.

WordPress by default will attempt to redirect changed/moved content. But it doesn’t always work and you should never rely on WordPress for this functionality. But don’t worry, there are several easy ways to set up redirects in WordPress:

First, you can use the free Redirection plugin to manage redirects from your WordPress dashboard. Once you’ve installed and activated the plugin, go to Tools → Redirection and enter the 404 page URL in the Source URL box and the new location of the content in the Target URL box:

How to set up redirects with the Redirection plugin
How to set up redirects with the Redirection plugin

Xem thêm : Inverter Hybrid Sungrow 6kW 3 pha

If you’re hosting with Kinsta, you can also manage redirects from the MyKinsta dashboard. Using Kinsta’s tool is actually a better way to go about it as the rules are implemented at the server level, which is a much more optimal way in terms of performance. It also means one less third-party plugin you have to worry about.

To add a redirect, go to your site in MyKinsta and select Redirects in the sidebar menu. Then click the Add redirect rule button:

Add redirect rules in MyKinsta.
Add redirect rules in MyKinsta.

You can then define your redirect rule:

Add a 301 redirect in MyKinsta.
Add a 301 redirect in MyKinsta.

Finally, if your host uses the Apache server, you can use .htaccess to set up redirects. The .htaccess Generator site can help you generate the proper code to add to your site’s .htaccess file.

How to Create Your Own Error 404 Not Found Page?

While you can do your best to prevent 404 errors by following the tips above, it’s impossible to entirely eliminate 404 errors because some things are just plain outside your control. It’s not uncommon for small sites to have thousands of 404 errors every month.

For example, if a visitor mistypes the URL, or if another website links to a page that doesn’t exist, people are going to get 404 errors no matter what.

To provide a more user-friendly error page, you can use one of the many 404 page plugins. For example, the free 404page plugin lets you set up a custom 404 error page with:

  • A search box
  • Important links
  • Contact information

Another important feature of the 404 page plugin is that it doesn’t create redirects. A 404 page should never be redirected to a physical page such as yoursite.com/404. The 404 error should always be generated dynamically on the page in question.

By including these elements, you give visitors the tools they need to find their way to the right page. But remember, keep your 404 page light for better performance. Only include what is absolutely needed.

How to Monitor 404 Errors Going Forward?

Going forward, it can be beneficial to pay attention to which requests are causing 404 errors at your site. This can help you:

  • Find broken links that are sending people to a non-existent resource (these could be internal links or external links from other sites). You’d then want to do your best to fix those links if at all possible.
  • See which pages Google is having trouble crawling. You’d then want to figure out why Google is trying to crawl a non-existent page and set up a redirect if needed.
  • Troubleshoot performance related issues with 404 errors.

Option 1 – Google Analytics

If you use Google Analytics, you can set up a custom report to track 404 errors from external links. Rebelytics has a good tutorial on the topic.

Option 2 – WordPress Plugin

If you want to use a WordPress plugin, the aforementioned Redirection plugin can help you monitor for 404 errors from your WordPress dashboard.

Option 3 – Third-Party Audit Tool

You can also use a third-party audit tool like Ahrefs to monitor for 404 errors on your site. You can even set this up to run on a schedule.

404 errors audit
404 errors audit

You can also find and monitor 404 errors with Sitechecker. Checking up to 900 pages is free with an auto crawling every 3-days. If you get a paid plan, you are able to set up monitoring daily or even every 12 hours.

Check 404 errors with Sitechecker
Sitechecker

Option 4 – Google Search Console

Lastly, you can track 404 errors that Google’s crawlers encounter in Google Search Console. Once you’ve verified your site with Google Search Console, go to Crawl → Crawl Errors → Not found to view a list of 404 errors that Google has encountered.

This is by far one of the easiest ways. It’s also the best in terms of performance because it requires no third-party plugins or additional scanning against your site. Google’s bots are already crawling your site on a regular basis, so why not simply take advantage of the data they already provide? 😉

Google Search Console 404 errors
Google Search Console 404 errors

Summary

Unfortunately, 404 errors will happen on your site whether you like it or not. The larger your site is, the more you’ll start seeing. We recommend getting a good workflow together for how you monitor these types of errors and go about fixing them. 404 errors are never good for visitors, your brand, and Google doesn’t like to see them either.

Have any other tips or questions regarding the Error 404 Not Found message or how it impacts your site? Let us know below in the comments.

Get all your applications, databases, and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 260 PoPs worldwide

Get started with a free trial of our Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

Nguồn: https://hvsolar.vn
Danh mục: Tin Tức

Bài viết liên quan

SMEs thêm kỳ vọng phục hồi từ chương trình giảm 1% lãi vay từ Biz MBBank
Ký hợp đồng EPC các dự án điện mặt trời Phước Thái 2 và 3
Combo Điện Mặt Trời Hòa Lưới 5,4KWP – Hóa Đơn Điện 1-2TR – Hoàn Vốn 3 Năm
Combo Điện Mặt Trời Hòa Lưới 5,4KWP – Hóa Đơn Điện 1-2TR – Hoàn Vốn 3 Năm
Chính sách bảo hành
Đèn đường năng lượng mặt trời là gì? Những điều cần lưu ý khi sử dụng
Đèn đường năng lượng mặt trời là gì? Những điều cần lưu ý khi sử dụng
10 thông tin cơ bản về tên miền đặc biệt .Pro
Tra cứu và đăng ký tên miền
Tra cứu và đăng ký tên miền
CHÍNH SÁCH VẬN CHUYỂN & GIAO NHẬN HÀNG HOÁ
CHÍNH SÁCH VẬN CHUYỂN & GIAO NHẬN HÀNG HOÁ
Đèn năng lượng mặt trời là gì và chúng hoạt động như thế nào?
Đèn năng lượng mặt trời là gì và chúng hoạt động như thế nào?
3 Tips to Effectively Test Your 404 Error Page
3 Tips to Effectively Test Your 404 Error Page

Chuyên mục: Tin Tức

728x90-ads

About Bùi Gia Cẩn

Previous Post: « Các Tấm Pin Mặt Trời Tạo Ra Bao Nhiêu Năng Lượng?
Next Post: Lợi ích bất ngờ khi lắp đèn năng lượng mặt trời trong khu vườn »

Primary Sidebar

Bài viết nổi bật

Affirming California’s Restrictions on Lead Generation and Solar Broker Services in the Residential Solar Industry

Tháng Mười Hai 9, 2023

Pivot Energy Closes $200 Million Financing Facility for a 100 MW Multi-State Portfolio of Distributed Solar Projects

Tháng Mười Hai 9, 2023

Top Solar Marketing Agencies in 2023

Top Solar Marketing Agencies in 2023

Tháng Mười Hai 9, 2023

2023 Solar Incentives Guide for Des Moines, IA – Tax Credits & Rebates

Tháng Mười Hai 9, 2023

Las Cruces solar company spreading positive change

Las Cruces solar company spreading positive change

Tháng Mười Hai 9, 2023

(no title)

Tháng Mười Hai 9, 2023

Solar market trends and prospects in Latin America

Solar market trends and prospects in Latin America

Tháng Mười Hai 9, 2023

(no title)

Tháng Mười Hai 9, 2023

Solar Project

Tháng Mười Hai 9, 2023

» Alliant Energy solar energy project progressing

Tháng Mười Hai 9, 2023

What is solar energy? Types and main advantages

Tháng Mười Hai 9, 2023

The Percentage of Sunlight Plants Capture to Convert it into Food Energy

Tháng Mười Hai 9, 2023

Types of Solar Energy Systems

Types of Solar Energy Systems

Tháng Mười Hai 9, 2023

Utah Solar Energy Association

Tháng Mười Hai 9, 2023

Impacto ambiental de la energía solar

Impacto ambiental de la energía solar

Tháng Mười Hai 9, 2023

Which One Of These Statements About Solar Power Is False?

Tháng Mười Hai 9, 2023

Cómo aumentar la energía espiritual - Descúbrelo en el Blog LNT®

Cómo aumentar la energía espiritual – Descúbrelo en el Blog LNT®

Tháng Mười Hai 9, 2023

30 Interesting Facts About Solar Energy That You Probably Didn’t Know

30 Interesting Facts About Solar Energy That You Probably Didn’t Know

Tháng Mười Hai 9, 2023

How Long Can a Solar Battery Power a House?

Tháng Mười Hai 9, 2023

U.S. Government to Help Pay for Your New Blinds!

U.S. Government to Help Pay for Your New Blinds!

Tháng Mười Hai 9, 2023

Footer

Về chúng tôi

Hotline: 1900 0026 – 0943.999.539

CÔNG TY CỔ PHẦN KITAWA
Mã số thuế : O31444487O
Email : info @ kitawa. vn

Mạng xã hội

Theo dõi chúng tôi tại Google News

Địa Chỉ

  • CỬA HÀNG – TRỤ SỞ CHÍNH THỨC

    Số 41F/12 đường Đặng Thùy Trâm, Phường 13, Quận Bình Thạnh, Thành phố Hồ Chí Minh

    ĐẠI LÝ CHÍNH HÃNG

  • CAMERA HÒA SANG – Số 27/11 – Đường Trần Hưng Đạo, Phường Đôn Hòa, TP Dĩ An, Bình Dương
  • Số 59 – Đường Phú Lợi – Khóm 2, Phường 2, Thành phố Sóc Trăng, Sóc Trăng
  • Ấp Ninh Chài, Xã Ninh Quới A, Huyện Hồng Dân, Bạc Liêu
  • CỬA HÀNG THIẾT BỊ ĐIỆN NƯỚC PHÚ THỊNH – Số 14 Đặng Văn Trước, Lộc An, Phường Trảng Bàng, Thị xã Trảng Bàng, Tây Ninh
  • Thị trấn Cam Đức, Huyện Cam Lâm, Khánh Hòa
  • Ấp sân bay, xã Tân Phong, huyện Tân Biên, Tây Ninh
  • Ấp suối Cao B, xã Phước Đông, huyện Gò Dầu, Tây Ninh

Map

Bản quyền © 2023