列出网站中的所有链接 [英] List all links in web site

查看:523
本文介绍了列出网站中的所有链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有一个网站的所有网页。我的任务是将所有HTML文件更改为 .asp 文件并更改链接。我有大约280个HTML文件。

是否有任何软件或网络服务可以读取网站并向我显示网站的链接结构(使我的工作更轻松),类似于网站地图?

如果它们是绝对路径,那么您可以编辑您的hosts文件,以将原始域指向您自己的服务器,如果您真的 需要更换网址,请尝试使用UltraEdit或Notepad ++等文本编辑器(在Windows上)可以找到/替换文件(并使用搜索短语的正则表达式)。或者你可以在Linux上使用sed或perl。


I have all the web pages of a website. My task is to change all HTML files to .asp files and change the links. I have about 280 HTML files.
Is there any software or web service which can read a website and show me the link structure of the site (to make my job easier) similar to a site map?

解决方案

If the links use relative paths, all you have to do is to change the .html file extensions to .asp and place the files on a server that can run ASP.

If they are absolute paths, you can get away with editing your hosts file to point the original domain to your own server and just place the untouched files on your server.

If you really need to replace the URLs, try a text editor like UltraEdit or Notepad++ (on Windows) that can do find/replace over files (and use regular expressions for the search phrase). Or you can use sed or Perl on Linux.

这篇关于列出网站中的所有链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆