站点地图必须是Xml文件吗? [英] Xml file are must for sitemap ?

查看:119
本文介绍了站点地图必须是Xml文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,下午好了



i有一些动态和satic数据的站点地图。我的动态数据来自sql server dataabse .xml文件是必须为sitemap for seo ?从sql绑定站点地图数据是否合适?或者我们必须从xml文件绑定。?请告诉我,我有点困惑。



我尝试了什么:



i am绑定站点地图与sql数据库

解决方案

我使用带有通用处理程序的动态生成的站点地图没有问题( ashx的)。只要处理程序生成了正确的XML,并在 robots.txt 文件中添加了一个链接,就可以了。

网站地图:https://www.your-site.com/sitemap.ashx 



您还可以通过网站管理员提交您的站点地图文件适用于 Google 的工具网站[ ^ ]和 Bing [ ^ ]。


hello all good afternoon

i have some dynamic and satic data for sitemap .and my dynamic data coming from sql server dataabse .xml file are must for sitemap for seo ?is it good to bind sitemap data from sql? or we will have to bind from xml file.? please tell me ,i am littl bit confused .

What I have tried:

i am binding sitemap with sql database

解决方案

I've had no problems using a dynamicly-generated sitemap with a generic handler (.ashx). So long as the handler generates the correct XML, and you add a link to it in your robots.txt file, it should be fine.

Sitemap: https://www.your-site.com/sitemap.ashx


You can also submit your sitemap file via the Webmaster Tools sites for Google[^] and Bing[^].


这篇关于站点地图必须是Xml文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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