教大家一个生成google网页地图的简便方法!!!!!!!!!

我的网页地图就是这样生成的,现在提供给大家:
不需要专门的下载什么生成软件,安装什么东西,直接生成。
一次性生成一个站点地图很简单,只需要你登陆一个专门提供网页地图的国外网站
http://www.sitemapbuilder.net
在中间的那个框里填上你需要生成地图的域名,然后点击右边黄色的按钮,OK
你的网站的文件列表就出来了,
然后就点文件框下面的黄色按钮,OK
你需要的GOOGLE网页地图就完全呈现出来了,
点一下文本框上方的灰色按钮,OK ,你的sitemap.xml 网页地图就生成好了。
剩下的就不用我教你了,上传到你的网页根目录下,然后就提交给google
大功告成了。哈哈,简单吧!
网络公司的兄弟们需要经常帮客户制作网页地图的就可以下载一套装电脑上随时使用。

唯一需要注意的一点是:提交域名的时候要以以下格式:http://www.nbcc.com.cn/

国外还有一个网站也提供在线网页地图制作,http://www.xml-sitemaps.com/
效果也不错,速度稍慢,提交后耐心点等待,生成的格式有sitemap.xml,sitemap.xml.gz ,ror.xml ,sitemap.htm ,.txt的,王通的那个网站页面就是链接到这里的。 缺点是超过500个页面的就不要来试了,他无法运行。
页面超过500页的需要者只能可以在这个网站上下载他们开发出来的网页地图制作软件,自己在本机上
制作自己的网页地图,甚至于放到服务器上。怎么下,自己研究。一点声明,需要.net
还有一更牛的东西来了,不敢独享,给大家共享了。
西安一家公司制作的一款sitemap网页地图生成器,我用过,很不错,现推荐给大家.
可以生成.txt .html .xml规格的网页地图,一次完成,如果页面比较多的话,速度
不是很快,请有耐心一点.
请点击下载:sitemap网页地图生成器

如果是静态页面,我们可以通过一个小程序抓取,这是服务器端的抓取工具,对动态网页无效,是抓取服务器文件生成sitemap.xml的。我找找,如果有人需要我提供出来。

就是一个asp的文件,自动能抓网站服务器的文件,并制作成sitemap,对于能生成静态页的网站还是比较有效的。
有需要的请点击下载:静态页面网页地图生成程序

使用方法:下载或复制后改里面我的网址http://www.nbcc.com.cn为你的网址,后面还有些禁止访问的文件夹自己添加 改好后另存为rss.asp放到根目录下,然后通过IE访问你的这个文件,如http://www.nbcc.com.cn/rss.asp 就会自动生成sitemap.xml的网页地图文件。
当然我的根目录 下是没这个文件的,不然天天你们帮我生成网页地图,我不晕死。
另附百度,谷歌,MSN sitemap.xml文件提交地址:
GOOGLE提交的地址是https://www.google.com/webmasters/sitemaps/login?hl=zh_CN
YAHOO提交的地址是:https://siteexplorer.search.yahoo.com/
MSN提交的地址是: http://webmaster.live.com/


Google SiteMap 生成工具

参数说明:
$website–你的域名
$page_root–你的站点的绝对路径
$changefreq–更新时间单位 “always”(始终), “hourly”(小时), “daily”(天), “weekly”(星期), “monthly”(月), “yearly” “never”(从不)
$priority–更新频率
$allow_dir–允许列表的目录
$disallow_dir–禁止列表的目录
$disallow_file–禁止列表的文件类型

/* maybe change this: */ $changefreq = "weekly"; //"always", "hourly", "daily", "weekly", "monthly", "yearly" and "never". $priority = 0.8; /* this sets the last modification date of all pages to the current date */ $last_modification = date("Y-m-d\TH:i:s") . substr(date("O"),0,3) . ":" . substr(date("O"),3);

/* list of allowed directories */ $allow_dir[] = "web";

/* list of disallowed directories */ $disallow_dir[] = "admin"; $disallow_dir[] = "_notes";

/* list of disallowed file types */ $disallow_file[] = ".inc"; $disallow_file[] = ".old"; $disallow_file[] = ".save"; $disallow_file[] = ".txt"; $disallow_file[] = ".js"; $disallow_file[] = "~"; $disallow_file[] = ".LCK"; $disallow_file[] = ".zip"; $disallow_file[] = ".ZIP"; $disallow_file[] = ".CSV"; $disallow_file[] = ".csv"; $disallow_file[] = ".css"; $disallow_file[] = ".class"; $disallow_file[] = ".jar"; $disallow_file[] = ".mno"; $disallow_file[] = ".bak"; $disallow_file[] = ".lck"; $disallow_file[] = ".BAK";

/* simple compare function: equals */ function ar_contains($key, $array) { foreach ($array as $val) { if ($key == $val) { return true; } } return false; }

/* better compare function: contains */ function fl_contains($key, $array) { foreach ($array as $val) { $pos = strpos($key, $val); if ($pos === FALSE) continue; return true; }

return false; }

/* this function changes a substring($old_offset) of each array element to $offset */ function changeOffset($array, $old_offset, $offset) { $res = array(); foreach ($array as $val) { $res[] = str_replace($old_offset, $offset, $val); } return $res; }

/* this walks recursivly through all directories starting at page_root and adds all files that fits the filter criterias */ // taken from Lasse Dalegaard, http://php.net/opendir function getFiles($directory, $directory_orig = "", $directory_offset="") { global $disallow_dir, $disallow_file, $allow_dir;

if ($directory_orig == "") $directory_orig = $directory;

if($dir = opendir($directory)) { // Create an array for all files found $tmp = Array();

// Add the files while($file = readdir($dir)) { // Make sure the file exists if($file != "." && $file != ".." && $file[0] != '.' ) { // If it's a directiry, list all files within it //echo "point1
“; if(is_dir($directory . “/” . $file)) { //echo “point2
“; $disallowed_abs = fl_contains($directory.”/”.$file, $disallow_dir); // handle directories with pathes $disallowed = ar_contains($file, $disallow_dir); // handle directories only without pathes $allowed_abs = fl_contains($directory.”/”.$file, $allow_dir); $allowed = ar_contains($file, $allow_dir); if ($disallowed || $disallowed_abs) continue; if ($allowed_abs || $allowed){ $tmp2 = changeOffset(getFiles($directory . “/” . $file, $directory_orig, $directory_offset), $directory_orig, $directory_offset); if(is_array($tmp2)) { $tmp = array_merge($tmp, $tmp2); } } } else { // files if (fl_contains($file, $disallow_file)) continue; array_push($tmp, str_replace($directory_orig, $directory_offset, $directory.”/”.$file)); } } }

// Finish off the function closedir($dir); return $tmp; } }

$a = getFiles($page_root);

echo ‘‘; ?>

ASP版:

google网页地图  

相关文章:


Trackback

本文到目前为止有0条评论

添加评论