Click here to Skip to main content
15,906,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
v2
Comments
[no name] 18-Mar-16 5:17am    
It is always better to use look up. SO choose xml file instead of Database.

Firstly you can easily modify in xml file as compared Database.
Secondly connecting to DB every time and closing the connection is bad as compared to xml.
manvendra patel 18-Mar-16 5:52am    
but my sitemap are dynamic. i am working on eCommerce website .there is lot of dynamic category subcategory in my database .i want to show this category on sitemap page.then how can we use xml file instead of database.?
F-ES Sitecore 18-Mar-16 6:26am    
"sitemap" has no official definition, it means different things to different people so you'll need to explain what you mean by "sitemap"

1 solution

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[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900