什么是生成站点地图的最佳方式? [英] What is the best way to generate a sitemap?

查看:109
本文介绍了什么是生成站点地图的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我的网站建立一个网站地图。
该网址将为www.example.com/mysitemap.html。
我知道有一些工具可以自动生成一个包含
可到达网址的XML文件,并且可以改善SEO。

所以我的问题是:
如何从生成的XML构建这个HTML页面?或者我错了,这种HTML页面是手动构建的?如果没有,我们如何整合XML并将其转换到网站?



非常感谢。如果您的网站架构包含在一个数据库(如CMS)中,您可以执行类似于以下操作的内容:
Regards。

解决方案

Darkyo建议。

然而有更简单的方法。有许多免费服务可以抓取您的网站并创建网站地图。

http://www.xml-sitemaps.com/ http://sitemapdoc.com/ 是一些例子,但互联网充满了它们。只需googlesitemap creator。



如果您想创建自己的脚本,在 http://enarion.net/google/phpsitemapng 。这可能是一个真正的好开始。


I need to build a sitemap for my website. The url will be "www.example.com/mysitemap.html". I know that there are some tools that generate automatically an XML file that contains the reachable URLs and also improve the SEO.

So my questions are: How can I build this HTML page going from the generated XML? Or am I wrong and this kind of HTML page is built manually? If not, how do we integrate the XML and convert it to the website?

Thank you very much. Regards.

解决方案

If your site architecture is contained in a database (like a CMS) you can do something like Darkyo suggested.

However there are easier methods. There are many free services which crawl your site and create a sitemap

http://www.xml-sitemaps.com/ or http://sitemapdoc.com/ are some examples but the Internet is full of them. Just google "sitemap creator".

If you want to create your own script there is program called "php sitemap ng" at http://enarion.net/google/phpsitemapng . This can be a real good starting place.

这篇关于什么是生成站点地图的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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