如何维护网站的外部链接?
我想知道如何控制网页上的链接,链接指向外部站点。有时,外部站点可能会消失,而您却不知道发生了此类事件。
我正在考虑制作一个 Excel 工作表,其中包含网站上的所有链接及其位置。然后我每月手动检查所有链接并检查该网站是否存在(我发现这是一个非常愚蠢的想法:/)
你们中有人有维护外部链接的良好系统吗?
I want to know how to control the links on the webpage, where the link leads to external sites. Sometimes it can be that an external site just vanishes and you don't know that such an event occurred.
I am thinking about making an Excel sheet which holds all links and it's places from the website. Then I go manually monthly over all links and check if the website exists (which I find a pretty stupid idea :/ )
Does anyone of you have a good system on maintaining external links?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用Xenu。
如果您使用的是 Mac,请查看 Integrity。
Use Xenu.
If you're on Mac, have a look at Integrity.
Xenu 被普遍认为是最好的链接检查器。定期运行它,甚至可以设置一个 cron 作业(或 Windows 调度程序)来定期运行它,甚至可以通过电子邮件将结果发送给您。
W3C 还在 http://validator.w3.org/checklink 上提供了一个链接检查器(并且您也应该在您的整个网站上运行他们的 CSS 和 HTML 检查器)。
这取决于您的网站的编码方式。我的都是 PHP,我曾经有一个想法,每次加载页面时(或每“n 次”)检查页面上的所有链接。如果这样做,您可以解析页面并检查每个链接,或者只是简单地调用 W3C 的链接检查器并解析输出 - 如果有任何错误,请向自己发送电子邮件。
Xenu is generally agreed to be the best link checker. Run it regularly, maybe even set up a cron job (or windows scheduler) to run it regularly, maybe even to email you the results.
The W3C also has a link checker at http://validator.w3.org/checklink (and you should run their CSS & HTML checkers on your entire site, too).
It depends how your site is coded. Mine is all PHP and I once had an idea to check all links on a page each time the page is loaded (or every 'n'th time). If you do this, you could either parse the page and check each link, or just do it simply and invoke W3C's link checker and parse the output - if any errors, send yourself an email.