404 not found 错误是当网站的服务器无法找到您尝试加载的页面时出现的HTTP 状态代码。(HTTP status)当您点击损坏的链接或书签(link or bookmark)时,您通常会看到 404 not found 错误。
在本文中,我们将介绍什么是 404 未找到错误,它是如何引起的,以及您可以采取哪些措施来修复它。
什么导致 404 Not Found 错误
404 not found 错误是 Internet 上最常见的错误代码之一。这是当Web 服务器(web server)找不到URL的特定页面时出现的客户端错误。
404 not found 错误的最可能原因是:
- 输入错误的网址
- 更改的 URL 或域名
- 已删除的页面或丢失的页面
许多网站管理员为 404 not found错误代码(error code)创建自定义错误页面,因此根据您尝试加载的网站,它的显示可能会有所不同。
404 HTTP 错误(HTTP error)的一些常见名称是:
- 404 未找到
- 在此服务器上找不到请求的 URL [URL]
- 404页面不存在
- 错误 404(Error 404)。找不到您要查找的页面。
- HTTP 404
- 404 文件或目录未找到
- 未找到错误404
404 not found错误(error isn)对于浏览网页的人来说并不坏。如果您运行一个网站,该错误意味着访问您网站的人会加载您的页面,看到错误代码(error code),然后在几秒钟后离开。大多数人不会重新访问该页面。它会对您的SEO产生负面影响,因为 Google 的算法认为您的页面与用户(page doesn)搜索意图(search intent)不匹配。
快速修复
您可以尝试一些方法来修复 404 错误,包括:
- 刷新页面:(Refresh the page: )偶尔出现404错误页面(error page)是由小故障引起的。按F5或单击(F5 )Web 浏览器(web browser)左上角的刷新按钮。
- 检查 URL:(Check the URL: )检查搜索栏中的(search bar)URL是否存在拼写错误。这通常是 404 错误的原因,快速扫描错别字即可解决问题。
- 使用 Google:(Use Google: )尝试使用Bing 或 Google(Bing or Google)等流行的搜索引擎搜索(search engine)页面。在地址栏中(address bar and press)输入网站的主页和引发 404 错误的网页名称,然后按(web page)Enter。如果站点管理员(site administrator)更改了页面的URL,它应该会显示在此处。
- 搜索网站:(Search the website: )同样,您可以尝试一次向上移动一个目录级别(directory level),直到找到加载的页面,然后浏览网站以找到您正在寻找的页面。例如,如果 www.online-tech-tips.com/computer-tips/how-to 未加载,则向上移动目录级别(directory level)(例如,www.online-tech-tips.com/computer-tips/)并尝试在那里找到页面。
整个网站都关闭了
如果您无法从该网站加载任何页面,则该网站可能已关闭。使用像Is It Down Right Now 这样的服务?(Is It Down Right Now?)找出网站是否存在问题。或者,您可以前往社交媒体(如果它是一个受欢迎的网站或该网站有自己的社交媒体页面),看看是否有其他人遇到同样的问题。
如果整个站点都已关闭并且仅影响您,您可以尝试以下方法:
- 清除浏览器缓存:(Clear your browser cache: )如果您认为 404 错误仅发生在您身上(例如,您可以将其加载到另一台设备上),请尝试清除浏览器的缓存。查看我们在所有流行浏览器中清除缓存的指南。
- 更改 DNS 服务器:(Change DNS servers: )更改 DNS 服务器(Changing your DNS server)有时可以修复 404 错误。但是,如果整个网站都显示 404 未找到错误,则它可能已被您的ISP或政府审查(government censorship)过滤器阻止。
- 让网站管理员知道:(Let the website administrator know: )最后,您可以联系网站管理员(s administrator),将问题告知他们。有时,在网站更新过程中会发生一些可能影响网站性能(site performance)的小错误配置,他们可能没有注意到。
如何修复我网站上的 404 Not (Website)Found 错误(Found Error)
如果您是网站或管理员(website or administrator),并且想要从您的网站中查找并删除损坏的链接以改善用户体验(user experience),请尝试检查Google Search Console。此工具使用网络爬虫检查您的网站是否存在问题,包括导致用户收到错误 404(error 404) 响应代码(response code)的链接。
- 前往Google Search Console网站并选择立即开始(Start now)。
- 输入您网站的URL并验证您是否拥有该域。为此,请前往您的主机控制面板(control panel)并输入TXT 记录(TXT record)。这可能需要一些时间来更新。
- 验证后,点击Go to property。
- 从左侧菜单中,选择Coverage。
- 在这里,您应该会看到与您的页面相关的任何错误。
如果您使用 WordPress,则可以轻松修复 404 错误。通常, WordPress 平台(WordPress platform)上的 404 错误是由.htaccess 文件(.htaccess file)的问题引起的。
通过执行以下操作修复您网站上的错误 404 :(error 404)
- 打开 WP 管理仪表板。
- 在设置下,(Settings,)选择永久链接(Permalinks)。
- 单击保存更改(Save Changes)。
这应该重写.htaccess 文件(.htaccess file)并刷新重写规则,解决您的 404错误代码问题(error code problem)。
或者,您可以使用死链接检查器(link checker),例如www.deadlinkchecker.com或 SEMRush审计工具(auditing tool)。
返回浏览
无论您是网站管理员还是只是想阅读一篇文章,没有什么(s nothing)比看到 404错误(error appear)更糟糕的了。这是最常见和最令人沮丧的错误代码之一,但现在您知道如果它再次弹出如何修复它。
What Is a 404 Not Found Error (and How to Fix It)
A 404 not found error is an HTTР stаtus code that appears when a website’s serνer сan’t locate the page you tried to load. You’ll usually see a 404 not found error when you follow a brokеn link or bookmark.
In this article, we’ll cover what a 404 not found error is, how it’s caused, and what you can do to fix it.
What Causes a 404 Not Found Error
The 404 not found error is one of the most common error codes on the internet. It’s a client-side error that appears when the web server cannot find the specific page for the URL.
The most likely causes of the 404 not found error are:
- Mistyped URL
- Changed URL or domain name
- Deleted pages or missing pages
Many website administrators create custom error pages for the 404 not found error code, so it may appear differently depending on which website you’re trying to load.
Some common names for the 404 HTTP error are:
- 404 Not Found
- The requested URL [URL] was not found on this server
- 404 Page Not Found
- Error 404. The page you’re looking for can’t be found.
- HTTP 404
- 404 File or Directory Not Found
- Error 404 Not Found
The 404 not found error isn’t bad only for people browsing the web. If you run a website, the error means that people coming to your site will load your page, see the error code, then leave in a few seconds. Most people won’t revisit the page. It can negatively affect your SEO because Google’s algorithms think that your page doesn’t match user search intent.
Quick Fixes
There are a few things you can try to fix a 404 error, including:
- Refresh the page: Occasionally, the 404 error page is caused by a minor glitch. Press F5 or click the refresh button at the top-left corner of your web browser.
- Check the URL: Check the URL in the search bar for any spelling mistakes. Often this is the cause of the 404 error, and a quick scan for typos is all it takes to fix the problem.
- Use Google: Try searching for the page using a popular search engine like Bing or Google. Type the website’s homepage and the name of the web page that’s throwing up the 404 error into the address bar and press Enter. If the site administrator changed the URL of the page, it should show up here.
- Search the website: Likewise, you can try moving up one directory level at a time until you find a page that loads, then navigate the website to find the page that you’re looking for. For instance, if www.online-tech-tips.com/computer-tips/how-to isn’t loading, move up a directory level (for example, www.online-tech-tips.com/computer-tips/) and try to find the page there.
The Whole Site Is Down
If you’re unable to load any pages from the website, likely, the site is down. Use a service like Is It Down Right Now? to find out if there’s an issue with the site. Alternatively, you could head to social media (if it’s a popular site or the site has its own social media pages) to see if anyone else is having the same issue.
If the whole site is down and it’s only affecting you, there are a few things you can try:
- Clear your browser cache: If you think the 404 error is only happening to you (for instance, you can load it on another device), try clearing the browser’s cache. Check out our guide on clearing your cache in all popular browsers.
- Change DNS servers: Changing your DNS server can occasionally fix the 404 error. However, if an entire website is giving you the 404 not found error, it may have been blocked by your ISP or by government censorship filters.
- Let the website administrator know: Finally, you can contact the website’s administrator to inform them of the problem. Occasionally, minor misconfigurations occur during website updates which can affect the site performance, and they may not have noticed.
How to Fix the 404 Not Found Error on my Website
If you’re a website or administrator and want to find and remove broken links from your website to improve user experience, try checking the Google Search Console. This tool uses web crawlers to check your website for issues, including links that cause users to receive the error 404 response code.
- Head to the Google Search Console website and select Start now.
- Enter your website’s URL and verify that you own the domain. To do so, head to your hosting control panel and enter the TXT record. This may take some time to update.
- Once verified, click Go to property.
- From the left-hand menu, select Coverage.
- Here, you should see any errors associated with your pages.
If you use WordPress, you can fix the 404 error easily. Usually, 404 errors on the WordPress platform are caused by issues with the .htaccess file.
Fix the error 404 on your website by doing the following:
- Open the WP admin dashboard.
- Under Settings, select Permalinks.
- Click Save Changes.
This should rewrite the .htaccess file and flush the rewrite rules, solving your 404 error code problem.
Alternatively, you can use a dead link checker such as www.deadlinkchecker.com or the SEMRush auditing tool.
Get Back to Browsing
Whether you’re a website administrator or you’re just trying to read an article, there’s nothing worse than seeing the 404 error appear. It’s one of the most common and frustrating error codes, but now you know how to fix it if it does pop up again.