What is a 404 error?

404 is a status code that tells a website user that a requested page is not available. 404 and other response status codes are part of the web"s Hypertext Transfer Protocol response codes. The 404 code means that a vps could not find a client-requested webpage. Variations of the error message include "404 Error," "404 Page Not Found" & "The requested URL was not found."

This 404 error page shows the user the error code, what it means và potential ways lớn navigate around it.

404 error codes are generated when a user attempts khổng lồ access a webpage that does not exist, has been moved, or has a dead or broken link. The 404 error code is one of the most frequent errors a web user encounters.

Bạn đang xem: Http error 404 file not found on a server

Servers are required khổng lồ respond lớn client requests, such as when a user attempts lớn visit a webpage. So, for example, if a user tries khổng lồ access a page that has been moved, but its original links has not been redirected, the user receives a 404 error code in response. The user might also receive the code along with a human-readable phrase such as "Not Found." 404 error codes can occur in any web browser.

What to bởi vì if you get a 404 error

If the site no longer exists, the web user will not be able to access that exact page. However, a user who receives a 404 error should take the following actions:

Refresh the webpage. 404 errors might be a momentary glitch. Search the web. Try lớn find the page through a website search, since it may have moved khổng lồ a different URL. Use another device.

Xem thêm: Cách Tạo Logo Công Ty Chỉ Vài Phút, Attention Required!

It is possible there is a client error or issue with the user"s browser. If the page works on another device, clear the first device"s cache and cookies.

Why you should fix 404 errors

On the website owner"s side, 404 errors should always be fixed when possible. Having a large amount of broken, unredirected or nonexistent link build up over time creates a poor user experience và will likely turn users away from the website. 404 errors make a site less intuitive lớn navigate as well.

An abundance of unresponsive URLs can also hurt the website"s tìm kiếm engine optimization (SEO) efforts, which means the trang web will appear less often in tìm kiếm results. Google also takes chú ý of a site"s tỷ lệ thoát rate, which is a metric that represents the percentage of users who visit a site but quickly leave.

How to identify & fix 404 errors on your own site

The following are different ways lớn identify và fix 404 errors:

Use a trang web analysis tool such as Google search Console or Screaming Frog SEO Spider to lớn identify liên kết that result in 404 errors. If the URL for a page has changed, the old URL should be retained as a redirect file. Redirects are the easiest way to fix a 404 error. Restore deleted webpages as long as there is no business reason khổng lồ keep it deleted. If there is a reason to lớn keep it deleted, then the liên kết should be redirected. Create the page contents for a 404 status code and substitute it for the 404 page that a browser usually provides. Custom error responses contain a message and can encourage the user lớn send a cảnh báo to the webmaster so that the situation can be fixed.

Branding a custom 404 error page

Some organizations customize their 404 pages with site maps or search boxes that are designed to lớn help the user navigate lớn a helpful page. The site"s branding & a liên kết to the homepage are often included as well.

For example, the Amazon 404 page has a photo of a dog, or dogs, with the added text "Sorry we couldn"t find that page. Try searching or go to Amazon"s trang chủ page." The error page also includes a tìm kiếm bar và Amazon biểu tượng logo at the top, so users can find the page they are looking for.

Some websites customize 404 errors with humor to lớn negate the user"s potentially frustrating experience. For example, Spotify"s 404 page, which says "404s and heartbreaks," is a spin on Kanye West"s 808s & Heartbreak album.