Questions tagged [sitemap]

A sitemap is an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. The sitemap protocol format is defined at http://www.sitemaps.org/protocol.html

Sitemap can be either a document in any form used as a planning tool for web design, or a web page that lists the pages on a web site, typically organized in hierarchical fashion. This helps visitors and search engine bots find pages on the site.

While some developers argue that site index is a more appropriately used term to relay page function, web visitors are used to seeing each term and generally associate both as one and the same. However, a site index is often used to mean an A-Z index that provides access to particular content, while a site map provides a general top-down view of the overall site contents.

XML is a document structure and encoding standard used, amongst many other things, as the standard for webcrawlers to find and parse sitemaps. There is an example of an XML sitemap below (missing link to site). The instructions to the sitemap are given to the crawler bot by a Robots Text file, an example of this is also given below. Site maps can improve search engine optimization of a site by making sure that all the pages can be found. This is especially important if a site uses a dynamic access to content such as Adobe Flash or JavaScript menus that do not include HTML links.

They also act as a navigation aid by providing an overview of a site's content at a single glance.

Source: https://en.wikipedia.org/wiki/Site_map

2093 questions
10
votes
3 answers

Using Web.SiteMap with Dynamic URLS (URL Routing)

I would like to match "approximate" matches in Web.SiteMap The Web.Sitemap static sitemap provider works well, except for one thing. IT'S STATIC! So, if I would have to have a sitemapnode for each of the 10,000 articles on my page like so…
Armstrongest
  • 15,181
  • 13
  • 67
  • 106
10
votes
4 answers

What is the best way to generate a sitemap?

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…
Zakaria
  • 14,892
  • 22
  • 84
  • 125
10
votes
1 answer

What should be the name of sitemap file while submitting to Google Webmasters?

I just want to know while submitting a sitemap file to Google webmasters, what should be the name of the file? Is it necessary to keep the sitemap filename as sitemap.xml or can I use any custom name for the file?
SanketR
  • 1,182
  • 14
  • 35
10
votes
6 answers

Sitemap for dynamic content?

I am developing a webapp using codeigniter (mvc) and php. I was wondering how do I create a sitemap for search engines when my contact is dynamic? Are there best practices for this, or is there a way to automate the process? I ask because content…
gg4
9
votes
3 answers

How do I get PHP to echo XML tags?

I'm working on a site that has about 3,000-4,000 dynamically generated pages, and I'm looking to update the XML sitemap. I've tried using online generators in the past, and they never seem to capture all the pages correctly, so I was just going to…
William Orazi
  • 1,694
  • 6
  • 23
  • 36
9
votes
2 answers

MVC Sitemap Provider -- Maintaining URL parameters in breadcrumb trail

I'm using the MvcSiteMapProvider from http://mvcsitemap.codeplex.com/ to create a breadcrumb trail for my project. I have some URLs that need an ID to be passed to present information for the appropriate user, e.g. http:…
Ben
  • 335
  • 7
  • 14
9
votes
4 answers

Correctly generating a sitemap XML with special characters

I've a program which generates XML sitemaps for Google Webmaster Tools (among other things). GWTs is giving me errors for some sitemaps because the URLs contain character sequences like ã¾, ã‹, ã€, etc. ** Sitemap specification says: Your Sitemap…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
9
votes
3 answers

How to implement a sitemap.xml file for a single page app using Firebase?

I was reading Google's guidelines about SEO and I found this. Help Google find your content The first step to getting your site on Google is to be sure that Google can find it. The best way to do that is to submit a sitemap. A sitemap is a file on…
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
9
votes
1 answer

XML Sitemap rendering as plain text

I have an XML Sitemap that needs to be rendered properly when accessed on a browser. See code below.
Weisen
  • 522
  • 3
  • 14
9
votes
1 answer

Sitemap lastmod date in Javascript

I need to the date format that is shown in tags in sitemap.xml. How can I achieve that? Output like: 2016-01-21EEST18:01:18+03:00 Where 'EEST' is probably timezone offset. I have seen this question and the…
stormec
  • 179
  • 1
  • 10
9
votes
2 answers

Do i need to Submit Separate (Mobile) Sitemap for AMP pages?

before responsive design we need mobile specific sitemaps, but with responsive design they were not needed. But with introduction of Accelerate Mobile Pages (AMP), we are again having mobile specific URLs, so my questions are: Do we need Separate…
9
votes
2 answers

Validation of XML Sitemap urlset with xhtml:link inside url element

I am trying to create a sitemap such as the below and I get this error:
Stackoverflow User
  • 161
  • 1
  • 4
  • 10
9
votes
5 answers

How to validate compliant XML sitemap?

For the following header I get the same two errors on all my sitemaps. It's confusing because, if Google can't read my sitemap, then how can they say that each URL has the same priority? The header counts as line 2, after the XML declaration. …
Jesse
  • 1,019
  • 2
  • 14
  • 25
9
votes
0 answers

Google multilingual sitemap issue

I have a sitemap issue. I am working on a multilingual website and I'm trying to use the Google method to indicate alternate language pages, as it is described here : https://support.google.com/webmasters/answer/2620865?hl=en. You can see my sitemap…
Okipa
  • 551
  • 4
  • 18
9
votes
4 answers

Caching sitemaps in Django

I implemented a simple sitemap class using Django's default sitemap application. As it was taking a long time to execute, I added manual caching: class ShortReviewsSitemap(Sitemap): changefreq = "hourly" priority = 0.7 def items(self): …
michuk
  • 1,332
  • 1
  • 13
  • 19