Dead links refer to links that can be opened originally. Due to some reasons, some links, pictures, css, and js in our website cannot be opened, and the website returns links with a status code of 404; simply speaking, Dead links refer to links that were originally normal but later became invalid. When sending a request to a dead link, the server returns a 404 error page.
#A dead link means that the address of the server has changed. The current address location cannot be found, including protocol dead link and content dead link. The reasons for dead links include errors in website server settings; changes in the name of a folder, incorrect path links, etc.
Two forms of dead links
Protocol dead links: dead links clearly indicated by the TCP protocol status/HTTP protocol status of the page, common ones such as 404, 403, 503 status etc.
Content dead link: The status returned by the server is normal, but the content has been changed to an information page that does not exist, has been deleted, or requires permissions and has nothing to do with the original content.
Causes of dead links
1. Dynamic links become dead links when the database no longer supports them.
2. A certain file or web page has moved, causing the link pointing to it to become a dead link.
3. The web page content is updated and replaced with other links, and the original link becomes a dead link.
4. Website server setting error
5. The website is uploaded to the server before it is fully completed. This also leads to many dead links.
6. The name of a certain folder is modified and the wrong path link becomes a dead link.
How to deal with dead links?
What should we do when we find a dead link? There are generally two methods: delete or add!
When we find a dead link, if we can restore the dead link, then we should deal with it as quickly and as early as possible! If we can't recover. The first step is to submit the dead link to the search engine immediately! Then let the dead links not affect the front desk of the website and avoid affecting the user experience!
The above is the detailed content of What is a dead link?. For more information, please follow other related articles on the PHP Chinese website!