A sitemap is a list of pages of the websites which are available for all the crawlers of search engines like Google, Yahoo, Bing or even to users. A sitemap can either be a web page or XML document. Submitting a sitemap to Search Engines help in improving Search Engine Optimisation (SEO) of the website by making sure all the pages can be found by users and crawlers.
Here is a console application which will let you create a sitemap dynamically for any website using C#:
- Download the source code from this link.
- Enable NuGet-Package to restore for the solution.
- Run the application and give in the website link as input and file path to save the sitemap file.
Here is how you can dynamically create a sitemap for a website using C#. You can put up to 50000 links in the site map. If you have more than that many URLs then create multiple site maps and submit.
Thanks for dropping by!! Feel free to drop me an email at [email protected] or you can also comment to this post.